Skip to content

Commit 0d58a42

Browse files
committed
updates
1 parent 47d5282 commit 0d58a42

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ ENV DJANGO_SETTINGS_MODULE=config.django.prod
4141
RUN SECRET_KEY=build-only-secret uv run python manage.py collectstatic --noinput --clear --verbosity 2
4242

4343
FROM debian:bookworm-slim AS django
44-
4544
LABEL org.opencontainers.image.source="https://github.com/22mahmoud/mahmoudashraf.dev"
4645
LABEL org.opencontainers.image.description="mahmoudashraf.dev Django application"
4746

@@ -71,14 +70,11 @@ ENV PATH="/app/.venv/bin:$PATH"
7170
ENV DJANGO_SETTINGS_MODULE=config.django.prod
7271

7372
EXPOSE 8000
74-
7573
ENTRYPOINT []
7674

77-
FROM nginx:stable AS nginx
78-
75+
FROM docker.io/nginx:1.29.5-alpine AS nginx
7976
LABEL org.opencontainers.image.source="https://github.com/22mahmoud/mahmoudashraf.dev"
8077
LABEL 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+
8379
COPY --from=builder /app/staticfiles /usr/share/nginx/html/static
8480
COPY nginx/site.conf /etc/nginx/nginx.conf

0 commit comments

Comments
 (0)