1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/admin/Dockerfile

36 lines
662 B
Docker
Raw Normal View History

# First stage to build assets
FROM node:8 as assets
COPY package.json ./
RUN npm install
COPY ./webpack.config.js ./
COPY ./assets ./assets
RUN mkdir static \
&& ./node_modules/.bin/webpack-cli
# Actual application
FROM python:3.7
RUN mkdir -p /app
WORKDIR /app
COPY requirements-prod.txt requirements.txt
RUN pip install -r requirements.txt
COPY --from=assets static ./mailu/ui/static
COPY mailu ./mailu
COPY migrations ./migrations
2018-10-22 17:01:59 +02:00
COPY start.py /start.py
RUN pybabel compile -d mailu/translations
EXPOSE 80/tcp
2018-12-20 17:47:15 +02:00
VOLUME ["/data","/dkim"]
ENV FLASK_APP mailu
2018-10-23 10:58:36 +02:00
CMD /start.py
2018-10-16 21:38:12 +02:00
HEALTHCHECK CMD curl -f -L http://localhost/ui/login?next=ui.index || exit 1