File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ ENV DJANGO_SETTINGS_MODULE=config.django.prod
4141RUN SECRET_KEY=build-only-secret uv run python manage.py collectstatic --noinput --clear --verbosity 2
4242
4343FROM debian:bookworm-slim AS django
44-
4544LABEL org.opencontainers.image.source="https://github.com/22mahmoud/mahmoudashraf.dev"
4645LABEL org.opencontainers.image.description="mahmoudashraf.dev Django application"
4746
@@ -71,14 +70,11 @@ ENV PATH="/app/.venv/bin:$PATH"
7170ENV DJANGO_SETTINGS_MODULE=config.django.prod
7271
7372EXPOSE 8000
74-
7573ENTRYPOINT []
7674
77- FROM nginx:stable AS nginx
78-
75+ FROM docker.io/nginx:1.29.5-alpine AS nginx
7976LABEL org.opencontainers.image.source="https://github.com/22mahmoud/mahmoudashraf.dev"
8077LABEL org.opencontainers.image.description="mahmoudashraf.dev nginx reverse proxy"
81- RUN mkdir -p /var/run/nginx-cache/jscache
82- RUN echo "D /var/run/nginx-cache 0755 root root -" > /usr/lib/tmpfiles.d/nginx-cache.conf
78+
8379COPY --from=builder /app/staticfiles /usr/share/nginx/html/static
8480COPY nginx/site.conf /etc/nginx/nginx.conf
You can’t perform that action at this time.
0 commit comments