Files
python-tdd/Dockerfile
Disco DeDisco 06f85d4c54
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
passed dummy values into compress command in Dockerfile for quick pipeline fix
2026-03-02 22:23:58 -05:00

23 lines
484 B
Docker

FROM python:3.13-slim
RUN python -m venv /.venv
ENV PATH="/.venv/bin:$PATH"
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
COPY src /src
RUN rm -rf /src/static
WORKDIR /src
RUN python manage.py collectstatic --noinput
ENV DJANGO_DEBUG_FALSE=1
RUN DJANGO_SECRET_KEY=build-dummy DJANGO_ALLOWED_HOST=localhost python manage.py compress
RUN adduser --uid 1234 nonroot
USER nonroot
CMD ["gunicorn", "--bind", ":8888", "core.wsgi:application"]