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