-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
22 lines (20 loc) · 753 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.12-alpine
RUN --mount=source=.,target=/root/src/proxpi,rw \
uname -a && cat /etc/issue && apk --version && python --version && pip --version \
&& apk --no-cache add git \
&& git -C /root/src/proxpi restore .dockerignore \
&& pip install --no-cache-dir --no-deps \
--requirement /root/src/proxpi/app.requirements.txt \
&& pip install --no-cache-dir --no-deps /root/src/proxpi/ \
&& pip show gunicorn \
&& apk del --purge git \
&& pip list
ENTRYPOINT [ \
"gunicorn", \
"--preload", \
"--access-logfile", "-", \
"--access-logformat", "%(h)s \"%(r)s\" %(s)s %(b)s %(M)dms", \
"--logger-class", "proxpi.server._GunicornLogger", \
"proxpi.server:app" \
]
CMD ["--bind", "0.0.0.0:5000", "--threads", "2"]