Commit
·
b360b37
1
Parent(s):
4e6c41b
test
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
|
@@ -10,9 +10,17 @@ 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 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# Copy and set up the wrapper script
|
| 17 |
COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
|
| 18 |
RUN chmod +x /docker-entrypoint-wrapper.sh
|
|
|
|
| 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
|