forked from whiskyechobravo/kerkoapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
13 lines (9 loc) · 791 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM python:3.11
LABEL maintainer="[email protected]" \
org.opencontainers.image.source="https://github.com/whiskyechobravo/kerkoapp" \
org.opencontainers.image.url="https://hub.docker.com/repository/docker/whiskyechobravo/kerkoapp"
WORKDIR /kerkoapp
COPY . /kerkoapp
RUN pip install --no-cache-dir --trusted-host pypi.python.org -r /kerkoapp/requirements/docker.txt
RUN for LOCALE in $(find kerkoapp/translations/* -maxdepth 0 -type d -exec basename "{}" \;); do pybabel compile -l $LOCALE -d kerkoapp/translations; done
CMD ["gunicorn", "--threads", "4", "--log-level", "info", "--error-logfile", "-", "--access-logfile", "-", "--worker-tmp-dir", "/dev/shm", "--graceful-timeout", "120", "--timeout", "120", "--keep-alive", "5", "--bind", "0.0.0.0:80", "wsgi:app"]