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

19 lines
386 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
RUN apk add --no-cache curl \
2018-04-22 12:02:59 +02:00
&& pip install -r requirements.txt
COPY server.py ./server.py
COPY main.py ./main.py
COPY flavors /data/flavors
COPY templates /data/templates
2018-11-07 16:41:11 +02:00
COPY static ./static
2018-04-22 12:02:59 +02:00
EXPOSE 80/tcp
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app