Move to UV and Docker
All checks were successful
Build and push Docker image / build (push) Successful in 1m39s
All checks were successful
Build and push Docker image / build (push) Successful in 1m39s
This commit is contained in:
parent
08732b6ad4
commit
2c0e7b7699
7 changed files with 236 additions and 4 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue