1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00
Mailu/setup/Dockerfile

23 lines
523 B
Docker
Raw Normal View History

2018-04-22 12:02:59 +02:00
FROM python:3-alpine
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt requirements.txt
2018-10-16 21:38:12 +02:00
RUN apk add --no-cache git curl \
2018-04-22 12:02:59 +02:00
&& pip install -r requirements.txt
COPY server.py ./server.py
COPY setup.py ./setup.py
COPY main.py ./main.py
2018-10-16 11:34:55 +02:00
COPY flavors /data/master/flavors
COPY templates /data/master/templates
2018-04-22 12:02:59 +02:00
2018-10-16 11:34:55 +02:00
#RUN python setup.py https://github.com/mailu/mailu /data
2018-04-22 12:02:59 +02:00
EXPOSE 80/tcp
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
2018-10-16 21:38:12 +02:00
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1