Add CA certificates to Docker runtime (#5)

This commit is contained in:
mdecimus 2023-07-19 16:13:35 +02:00
parent d96d7840a2
commit 481e86fdd4

View file

@ -41,6 +41,7 @@ FROM debian:buster-slim AS runtime
COPY --from=builder /app/target/release/stalwart-mail /usr/local/bin/stalwart-mail
COPY --from=builder /app/target/release/stalwart-install /usr/local/bin/stalwart-install
RUN apt-get update -y && apt-get install -yq ca-certificates
RUN echo "#\!/bin/sh\n\n/usr/local/bin/stalwart-install -c all-in-one -p /opt/stalwart-mail -d" > /usr/local/bin/configure.sh && \
chmod +x /usr/local/bin/configure.sh
RUN useradd stalwart-mail -s /sbin/nologin -M