2026-01-13 20:58:05 -05:00
|
|
|
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
|
2026-01-27 23:32:16 -05:00
|
|
|
RUN rm -rf /src/static
|
2026-01-13 20:58:05 -05:00
|
|
|
|
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
2026-01-27 23:32:16 -05:00
|
|
|
RUN python manage.py collectstatic --noinput
|
2026-01-13 20:58:05 -05:00
|
|
|
|
|
|
|
|
ENV DJANGO_DEBUG_FALSE=1
|
|
|
|
|
|
|
|
|
|
RUN adduser --uid 1234 nonroot
|
|
|
|
|
|
|
|
|
|
USER nonroot
|
2026-01-04 23:13:30 -05:00
|
|
|
CMD ["gunicorn", "--bind", ":8888", "core.wsgi:application"]
|