Move to UV and Docker
All checks were successful
Build and push Docker image / build (push) Successful in 1m39s

This commit is contained in:
Edgar P. Burkhart 2025-05-06 08:55:04 +02:00
parent 08732b6ad4
commit 2c0e7b7699
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
7 changed files with 236 additions and 4 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM ghcr.io/astral-sh/uv:debian-slim
ADD . /app
WORKDIR /app
RUN useradd -m -r nummi && \
chown -R nummi /app
USER nummi
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN uv sync --locked
WORKDIR /app/nummi
CMD ["uv", "run", "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "nummi.wsgi:application"]