nginx - Dockerfile sed -i, semicolon line terminators

This commit is contained in:
Mike Holloway committed 2025-12-07 18:13:32 -05:00
1 parent c0af475117
commit 39a5ca3f9a
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
FROM nginx:latest
RUN sed 's/\#gzip.*on;/server_tokens\toff;\n #gzip\ton;/' /etc/nginx/nginx.conf
RUN sed -i 's/\#gzip.*on;/server_tokens\toff;\n #gzip\ton;/' /etc/nginx/nginx.conf