You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/core/admin/Dockerfile

32 lines
605 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 curl libressl mariadb-connector-c postgresql-libs
COPY mailu/ ./mailu/
RUN set -euxo pipefail \
; venv/bin/pybabel compile -d mailu/translations
COPY migrations/ ./migrations/
COPY audit.py /
COPY start.py /
COPY --from=assets /work/static/ ./mailu/static/
RUN echo $VERSION >/version
EXPOSE 80/tcp
HEALTHCHECK CMD curl -skfLo /dev/null http://localhost/sso/login?next=ui.index
VOLUME ["/data","/dkim"]
ENV FLASK_APP mailu
CMD /start.py