Fix prod docker image build
This commit is contained in:
committed by
mathieui
parent
979ba96cb0
commit
0077d683a8
@@ -5,10 +5,10 @@
|
|||||||
# This is the prefered way to build the release image, used by the
|
# This is the prefered way to build the release image, used by the
|
||||||
# end users, in production.
|
# end users, in production.
|
||||||
|
|
||||||
FROM docker.io/alpine:3.21 as builder
|
FROM docker.io/alpine:latest as builder
|
||||||
|
|
||||||
RUN apk add --no-cache --virtual .build cmake expat-dev g++ git libidn-dev \
|
RUN apk add --no-cache --virtual .build cmake expat-dev g++ git libidn-dev \
|
||||||
make postgresql-dev python3 sqlite-dev udns-dev util-linux-dev botan-dev
|
make postgresql-dev python3 sqlite-dev udns-dev util-linux-dev botan3-dev
|
||||||
|
|
||||||
|
|
||||||
RUN git clone https://codeberg.org/poezio/biboumi && \
|
RUN git clone https://codeberg.org/poezio/biboumi && \
|
||||||
@@ -17,6 +17,7 @@ RUN git clone https://codeberg.org/poezio/biboumi && \
|
|||||||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DWITH_BOTAN=1 \
|
-DWITH_BOTAN=1 \
|
||||||
|
-DWITHOUT_SYSTEMD=1 \
|
||||||
-DWITH_SQLITE3=1 \
|
-DWITH_SQLITE3=1 \
|
||||||
-DWITH_LIBIDN=1 \
|
-DWITH_LIBIDN=1 \
|
||||||
-DWITH_POSTGRESQL=1 && \
|
-DWITH_POSTGRESQL=1 && \
|
||||||
@@ -25,15 +26,15 @@ RUN git clone https://codeberg.org/poezio/biboumi && \
|
|||||||
|
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
FROM docker.io/alpine:3.21
|
FROM docker.io/alpine:latest
|
||||||
|
|
||||||
RUN apk add --no-cache libidn libpq libstdc++ libuuid postgresql-libs \
|
RUN apk add --no-cache libidn libpq libstdc++ libuuid postgresql-libs \
|
||||||
sqlite-libs udns expat ca-certificates botan
|
sqlite-libs udns expat ca-certificates botan3
|
||||||
|
|
||||||
COPY --from=builder /etc/biboumi /etc/biboumi
|
COPY --from=builder /etc/biboumi /etc/biboumi
|
||||||
COPY --from=builder /usr/bin/biboumi /usr/bin/biboumi
|
COPY --from=builder /usr/bin/biboumi /usr/bin/biboumi
|
||||||
|
|
||||||
COPY ./docker/biboumi/alpine/biboumi.cfg /etc/biboumi/biboumi.cfg
|
COPY --from=builder /biboumi/docker/biboumi/alpine/biboumi.cfg /etc/biboumi/biboumi.cfg
|
||||||
|
|
||||||
RUN adduser biboumi -D -h /home/biboumi && \
|
RUN adduser biboumi -D -h /home/biboumi && \
|
||||||
mkdir /var/lib/biboumi && \
|
mkdir /var/lib/biboumi && \
|
||||||
|
|||||||
Reference in New Issue
Block a user