-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (17 loc) · 817 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.11-slim
LABEL org.opencontainers.image.title="Estimagus - main branch"
LABEL org.opencontainers.image.source=https://github.com/matejak/estimagus
LABEL org.opencontainers.image.description="The Estimagus web app. Gunicorn-powered, listening on port 5000"
LABEL org.opencontainers.image.licenses=BSD-3-Clause
WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
COPY requirements.txt.in .
RUN true \
&& pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt.in \
&& pip install --no-cache-dir gunicorn \
&& true
COPY app.py app_behind_proxy.py .
COPY estimage ./estimage
CMD ["gunicorn", "--timeout", "600", "--workers", "2", "--max-requests-jitter", "100", "--max-requests", "900", "--bind", "0.0.0.0:5000", "app_behind_proxy:app"]