Add Docker support with Dockerfile and docker-compose; implement entrypoint script for application startup

This commit is contained in:
Edgar P. Burkhart 2025-05-08 20:56:55 +02:00
parent 2c0e7b7699
commit b12f151b8d
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 30 additions and 3 deletions

View file

@ -10,9 +10,8 @@ USER nummi
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV NUMMI_CONFIG=/nummi/config.toml
RUN uv sync --locked
WORKDIR /app/nummi
CMD ["uv", "run", "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "nummi.wsgi:application"]
CMD ["./entrypoint.sh"]