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
|
|
|
|
|
2018-08-26 20:11:48 +02:00
|
|
|
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
|