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

Contents of /lbbs/Dockerfile/dockerfile.bbsd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Tue Jan 6 13:59:13 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.2: +2 -2 lines
Refine

1 # Stage for Build
2 FROM debian:13-slim AS builder
3
4 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
23 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 \
25 && locale-gen \
26 && rm -rf /var/lib/apt/lists/*
27
28 # Set environment variables for the locale
29 ENV LANG=en_US.UTF-8
30 ENV LANGUAGE=en_US:en
31 ENV LC_ALL=en_US.UTF-8
32
33 RUN apt-get update && apt-get install -y \
34 libssh-4 libpcre2-8-0 libmariadb3 libsystemd0 \
35 php-cli php-mysql \
36 && rm -rf /var/lib/apt/lists/*
37
38 # Copy the custom configuration file
39 COPY ./Dockerfile/php.ini /usr/local/etc/php/php.ini
40
41 COPY --from=builder /usr/local/lbbs /usr/local/lbbs
42
43 WORKDIR ${LBBS_HOME_DIR}

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