File size: 934 Bytes
39cc6c1 f7ed979 3acc46a b360b37 3acc46a 4e6c41b 39cc6c1 b360b37 79becd2 39cc6c1 8eb9010 39cc6c1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
FROM langfuse/langfuse:2
USER root
# Install PostgreSQL and necessary dependencies
RUN apk update && apk add --no-cache \
postgresql \
postgresql-contrib \
net-tools \
iproute2 \
sed
# Modify the CSP headers in next.config.mjs to remove frame-ancestors restriction
# RUN sed -i "/frame-ancestors 'none';/d" next.config.mjs
# Print CSP headers before modification
RUN echo "Before modification:" && grep -A 15 "cspHeader" next.config.mjs
# Modify the CSP headers in next.config.mjs to remove frame-ancestors restriction
RUN sed -i "/frame-ancestors 'none';/d" next.config.mjs
# Print CSP headers after modification
RUN echo "After modification:" && grep -A 15 "cspHeader" next.config.mjs
# Copy and set up the wrapper script
COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
RUN chmod +x /docker-entrypoint-wrapper.sh
EXPOSE 3000
ENTRYPOINT ["dumb-init", "--", "/docker-entrypoint-wrapper.sh"] |