/[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.3 by sysadm, Tue Jan 6 13:59:13 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  ARG LBBS_HOME_DIR=/usr/local/lbbs
5    
6    RUN apt-get update && apt-get install -y \
7        gcc make gdb autoconf automake libtool pkg-config \
8        libssh-dev libpcre2-dev libmariadb-dev libsystemd-dev \
9        php-cli php-mysql \
10        && rm -rf /var/lib/apt/lists/*
11    
12    COPY ./ /home/lbbs_src
13    WORKDIR /home/lbbs_src
14    
15    RUN autoreconf --install --force
16    RUN ./configure --prefix=${LBBS_HOME_DIR} \
17        && make && make install
18    
19    # Stage for Runtime
20    FROM debian:13-slim
21    
22  # Install locales package and generate en_US.UTF-8  # Install locales package and generate en_US.UTF-8
23  RUN apt-get update && apt-get install -y locales && \  RUN apt-get update && apt-get install -y locales \
24      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 \
25      locale-gen      && locale-gen \
26        && rm -rf /var/lib/apt/lists/*
27    
28  # Set environment variables for the locale  # Set environment variables for the locale
29  ENV LANG=en_US.UTF-8  ENV LANG=en_US.UTF-8
# Line 13  ENV LANGUAGE=en_US:en Line 31  ENV LANGUAGE=en_US:en
31  ENV LC_ALL=en_US.UTF-8  ENV LC_ALL=en_US.UTF-8
32    
33  RUN apt-get update && apt-get install -y \  RUN apt-get update && apt-get install -y \
34      gcc make gdb autoconf automake libtool pkg-config \      libssh-4 libpcre2-8-0 libmariadb3 libsystemd0 \
35      libssh-dev libpcre2-dev libmariadb-dev libsystemd-dev \      php-cli php-mysql \
36      php-cli php-mysql      && rm -rf /var/lib/apt/lists/*
37    
38  # Copy the custom configuration file  # Copy the custom configuration file
39  COPY ./Dockerfile/php.ini /usr/local/etc/php/php.ini  COPY ./Dockerfile/php.ini /usr/local/etc/php/php.ini
40    
41  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  
42    
43  WORKDIR ${LBBS_HOME_DIR}  WORKDIR ${LBBS_HOME_DIR}


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

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