1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/admin/Dockerfile
Florent Daigniere 562cd8c135 Remove the usage of capabilities use port 8080
In the real world users can't get them to work...
2023-08-28 11:34:51 +02:00

32 lines
589 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 -skfLo /dev/null http://localhost:8080/ping
VOLUME ["/data","/dkim"]
ENV FLASK_APP=mailu
CMD /start.py