Files
testpoint/Dockerfile
T
2026-07-29 10:47:40 +00:00

23 lines
475 B
Docker

FROM python:3.13-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
RUN addgroup --system django && adduser --system --ingroup django django
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod +x /app/entrypoint.sh && \
mkdir -p /app/staticfiles /app/media && \
chown -R django:django /app
USER django
EXPOSE 8000
ENTRYPOINT ["/app/entrypoint.sh"]