mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-02 23:17:26 +02:00
Build a Dockerfile
This commit is contained in:
parent
b18a1d5217
commit
002198d3d3
18
config/Dockerfile
Normal file
18
config/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
|
||||
RUN python setup.py https://github.com/mailu/mailu /data
|
||||
|
||||
EXPOSE 80/tcp
|
||||
|
||||
CMD gunicorn -w 4 -b 0.0.0.0:80 -b [::]:80 --access-logfile - --error-logfile - --preload main:app
|
4
config/main.py
Normal file
4
config/main.py
Normal file
@ -0,0 +1,4 @@
|
||||
from server import app, build_app
|
||||
|
||||
|
||||
build_app("/data")
|
@ -2,3 +2,4 @@ flask
|
||||
flask-bootstrap
|
||||
redis
|
||||
gitpython
|
||||
gunicorn
|
||||
|
Loading…
x
Reference in New Issue
Block a user