17 lines
360 B
Docker
17 lines
360 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# Build-time only — overridden at runtime via docker-compose env
|
|
ARG DJANGO_SECRET_KEY=build-placeholder
|
|
ENV DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY
|
|
|
|
RUN python manage.py collectstatic --noinput
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["./entrypoint.sh"]
|