Upgrade min.ie packaging

This commit is contained in:
Jonathan Cremin 2025-05-29 15:57:37 +01:00
parent c8000380b3
commit 20d395159b
8 changed files with 189 additions and 197 deletions

19
Containerfile Normal file
View file

@ -0,0 +1,19 @@
FROM python:3.13-slim-bookworm
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
WORKDIR /app
EXPOSE 8000
ENV DEBUG false
ENV SECRET_KEY unsafe
ADD pyproject.toml ./
RUN uv sync
ADD . .
RUN uv run ./manage.py collectstatic --noinput
CMD ["uv", "run", "gunicorn", "-b", "0.0.0.0:8000", "app.wsgi", "--log-file", "-"]