mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
21 lines
462 B
Docker
21 lines
462 B
Docker
FROM python:3-alpine
|
|
|
|
RUN mkdir -p /app
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt requirements.txt
|
|
RUN apk add --no-cache git \
|
|
&& pip install -r requirements.txt
|
|
|
|
COPY server.py ./server.py
|
|
COPY setup.py ./setup.py
|
|
COPY main.py ./main.py
|
|
COPY flavors /data/master/flavors
|
|
COPY templates /data/master/templates
|
|
|
|
#RUN python setup.py https://github.com/mailu/mailu /data
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|