2022-09-27 22:09:07 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2021-08-13 14:06:46 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
# admin image
|
2022-09-27 22:09:07 +02:00
|
|
|
FROM base
|
2021-11-04 15:22:12 +02:00
|
|
|
|
2022-09-27 22:09:07 +02:00
|
|
|
ARG VERSION=local
|
2021-11-17 22:00:04 +02:00
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2022-09-27 22:09:07 +02:00
|
|
|
RUN set -euxo pipefail \
|
2022-10-14 14:34:58 +02:00
|
|
|
; apk add --no-cache libressl mariadb-connector-c postgresql-libs
|
2016-11-09 17:18:16 +02:00
|
|
|
|
2022-10-17 16:20:52 +02:00
|
|
|
COPY --from=assets /work/static/ ./mailu/static/
|
2022-09-27 22:09:07 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
COPY audit.py /
|
|
|
|
COPY start.py /
|
2016-11-09 17:46:38 +02:00
|
|
|
|
2022-10-17 16:20:52 +02:00
|
|
|
COPY migrations/ ./migrations/
|
|
|
|
|
|
|
|
COPY mailu/ ./mailu/
|
|
|
|
RUN set -euxo pipefail \
|
|
|
|
; venv/bin/pybabel compile -d mailu/translations
|
2022-09-27 22:09:07 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
RUN echo $VERSION >/version
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2023-08-28 11:17:25 +02:00
|
|
|
#EXPOSE 8080/tcp
|
|
|
|
HEALTHCHECK CMD curl -skfLo /dev/null http://localhost:8080/ping
|
2022-09-27 22:09:07 +02:00
|
|
|
|
2018-12-20 17:47:15 +02:00
|
|
|
VOLUME ["/data","/dkim"]
|
2018-04-21 14:46:01 +02:00
|
|
|
|
2022-10-17 16:20:52 +02:00
|
|
|
ENV FLASK_APP=mailu
|
2018-10-23 10:58:36 +02:00
|
|
|
CMD /start.py
|