1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00
Files
Mailu/core/admin/Dockerfile
Florent Daigniere df3329962c Ensure healthchecks timeout
(cherry picked from commit 7aaf7ec17b)

# Conflicts:
#	towncrier/newsfragments/3398.misc
2024-10-17 12:58:46 +00:00

32 lines
593 B
Docker

# syntax=docker/dockerfile-upstream:1.4.3
# admin image
FROM base
ARG VERSION=local
LABEL version=$VERSION
RUN set -euxo pipefail \
; apk add --no-cache libressl mariadb-connector-c postgresql-libs
COPY --from=assets /work/static/ ./mailu/static/
COPY audit.py /
COPY start.py /
COPY migrations/ ./migrations/
COPY mailu/ ./mailu/
RUN set -euxo pipefail \
; venv/bin/pybabel compile -d mailu/translations
RUN echo $VERSION >/version
#EXPOSE 8080/tcp
HEALTHCHECK CMD curl -m3 -skfLo /dev/null http://localhost:8080/ping
VOLUME ["/data","/dkim"]
ENV FLASK_APP=mailu
CMD /start.py