photo26/Dockerfile
krek0 1ef7c6625c
All checks were successful
Docker / build (release) Successful in 8s
Docker, collecstatic at every start
2026-05-03 16:42:14 +02:00

19 lines
324 B
Docker

FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create volume mount points
RUN mkdir -p /app/media /app/static /app/data
EXPOSE 8000
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]