Remove manual CSP header modification in Dockerfile
#2
by
marcklingen
- opened
- Dockerfile +0 -11
Dockerfile
CHANGED
|
@@ -10,17 +10,6 @@ RUN apk update && apk add --no-cache \
|
|
| 10 |
iproute2 \
|
| 11 |
sed
|
| 12 |
|
| 13 |
-
# Modify the CSP headers in next.config.mjs to remove frame-ancestors restriction
|
| 14 |
-
# RUN sed -i "/frame-ancestors 'none';/d" next.config.mjs
|
| 15 |
-
# Print CSP headers before modification
|
| 16 |
-
RUN echo "Before modification:" && grep -A 15 "cspHeader" next.config.mjs
|
| 17 |
-
|
| 18 |
-
# Modify the CSP headers in next.config.mjs to remove frame-ancestors restriction
|
| 19 |
-
RUN sed -i "/frame-ancestors 'none';/d" next.config.mjs
|
| 20 |
-
|
| 21 |
-
# Print CSP headers after modification
|
| 22 |
-
RUN echo "After modification:" && grep -A 15 "cspHeader" next.config.mjs
|
| 23 |
-
|
| 24 |
# Copy and set up the wrapper script
|
| 25 |
COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
|
| 26 |
RUN chmod +x /docker-entrypoint-wrapper.sh
|
|
|
|
| 10 |
iproute2 \
|
| 11 |
sed
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# Copy and set up the wrapper script
|
| 14 |
COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
|
| 15 |
RUN chmod +x /docker-entrypoint-wrapper.sh
|