Skip to content

Commit 8252e8e

Browse files
author
f@bi.an
committed
Aktualisiere das Dockerfile zur Installation von Nginx und entferne die separate Brotli-Modul-Installation, da es nun direkt mit Nginx installiert wird. Optimiere die Struktur für Let's Encrypt-Zertifikate.
1 parent 622c67f commit 8252e8e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@ RUN --mount=type=cache,target=/site/.cache \
3131
PYTHONWARNINGS=ignore mkdocs build --quiet
3232

3333
FROM nginx:alpine
34-
RUN apk add --no-cache certbot certbot-nginx openssl
34+
RUN apk add --no-cache nginx nginx-mod-http-brotli certbot certbot-nginx openssl
3535

3636
# Create directories for Let's Encrypt
3737
RUN mkdir -p /etc/letsencrypt /var/lib/letsencrypt /var/www/certbot
3838

39-
# Add Brotli support
40-
RUN apk add --no-cache nginx-mod-http-brotli
41-
4239
COPY --from=builder /site/site /usr/share/nginx/html
4340
RUN chown -R nginx:nginx /usr/share/nginx/html && \
4441
chown -R nginx:nginx /var/www/certbot

0 commit comments

Comments
 (0)