1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-30 04:30:49 +02:00
Mailu/core/admin/Dockerfile

35 lines
946 B
Docker
Raw Normal View History

# syntax=docker/dockerfile-upstream:1.4.3
2021-08-13 14:06:46 +02:00
FROM base
2021-11-04 14:22:12 +01:00
ARG VERSION=local
LABEL version=$VERSION
COPY requirements-prod.txt requirements.txt
RUN set -euxo pipefail \
2022-08-19 19:32:42 +02:00
&& apk add --no-cache libressl curl postgresql-libs mariadb-connector-c \
2022-08-31 13:44:54 +02:00
&& pip install --no-cache-dir -r requirements.txt --only-binary=:all: --no-binary=Flask-bootstrap,PyYAML,SQLAlchemy \
2022-08-19 19:32:42 +02:00
|| ( apk add --no-cache --virtual build-dep libressl-dev libffi-dev python3-dev build-base postgresql-dev mariadb-connector-c-dev cargo \
&& pip install -r requirements.txt \
2022-08-19 18:47:33 +02:00
&& apk del --no-cache build-dep )
COPY mailu ./mailu
RUN pybabel compile -d mailu/translations
COPY migrations ./migrations
2018-10-22 18:01:59 +03:00
COPY start.py /start.py
COPY audit.py /audit.py
2022-09-29 12:49:37 +02:00
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
2018-12-20 17:47:15 +02:00
VOLUME ["/data","/dkim"]
ENV FLASK_APP mailu
2018-10-23 11:58:36 +03:00
CMD /start.py