/[LeafOK_CVS]/lbbs/Dockerfile/dockerfile.bbsd
ViewVC logotype

Diff of /lbbs/Dockerfile/dockerfile.bbsd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Mon Jan 5 05:42:59 2026 UTC Revision 1.4 by sysadm, Wed Jan 7 10:02:31 2026 UTC
# Line 1  Line 1 
1  FROM debian:latest  # Stage for Build
2    FROM debian:13-slim AS builder
3    
4  ARG LBBS_HOME_DIR=/usr/local/lbbs  RUN apt-get update && apt-get install -y \
5        gcc make gdb autoconf automake libtool pkg-config \
6        libssh-dev libpcre2-dev libmariadb-dev libsystemd-dev \
7        php-cli php-mysql \
8        && rm -rf /var/lib/apt/lists/*
9    
10    COPY ./ /home/lbbs_src
11    WORKDIR /home/lbbs_src
12    
13    RUN autoreconf --install --force
14    RUN ./configure --prefix=/usr/local/lbbs \
15        && make && make install
16    
17    # Stage for Runtime
18    FROM debian:13-slim
19    
20  # Install locales package and generate en_US.UTF-8  # Install locales package and generate en_US.UTF-8
21  RUN apt-get update && apt-get install -y locales && \  RUN apt-get update && apt-get install -y locales \
22      sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \      && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
23      locale-gen      && locale-gen \
24        && rm -rf /var/lib/apt/lists/*
25    
26  # Set environment variables for the locale  # Set environment variables for the locale
27  ENV LANG=en_US.UTF-8  ENV LANG=en_US.UTF-8
# Line 13  ENV LANGUAGE=en_US:en Line 29  ENV LANGUAGE=en_US:en
29  ENV LC_ALL=en_US.UTF-8  ENV LC_ALL=en_US.UTF-8
30    
31  RUN apt-get update && apt-get install -y \  RUN apt-get update && apt-get install -y \
32      gcc make gdb autoconf automake libtool pkg-config \      libssh-4 libpcre2-8-0 libmariadb3 libsystemd0 \
33      libssh-dev libpcre2-dev libmariadb-dev libsystemd-dev \      php-cli php-mysql \
34      php-cli php-mysql      && rm -rf /var/lib/apt/lists/*
35    
36  # Copy the custom configuration file  # Copy the custom configuration file
37  COPY ./Dockerfile/php.ini /usr/local/etc/php/php.ini  COPY ./Dockerfile/php.ini /usr/local/etc/php/php.ini
38    
39  RUN mkdir -p ${LBBS_HOME_DIR}  COPY --from=builder /usr/local/lbbs /usr/local/lbbs
   
 COPY ./ /home/lbbs_src  
 WORKDIR /home/lbbs_src  
   
 RUN autoreconf --install --force  
 RUN ./configure --prefix=${LBBS_HOME_DIR} && \  
     make && \  
     make install  
40    
41  WORKDIR ${LBBS_HOME_DIR}  WORKDIR /usr/local/lbbs


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1