fix: Dockerfile can not build.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
2ed23c4327
commit
727046805b
@ -1,7 +1,7 @@
|
|||||||
FROM node:16-alpine as base
|
FROM node:16-alpine as base
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package-lock.json package.json ./
|
COPY pnpm-lock.yaml package.json ./
|
||||||
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7 &&\
|
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7 &&\
|
||||||
pnpm i &&\
|
pnpm i &&\
|
||||||
pnpm build
|
pnpm build
|
||||||
|
@ -5,13 +5,13 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|||||||
// You might need to insert additional domains in script-src if you are using external services
|
// You might need to insert additional domains in script-src if you are using external services
|
||||||
const ContentSecurityPolicy = `
|
const ContentSecurityPolicy = `
|
||||||
default-src 'self';
|
default-src 'self';
|
||||||
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app comment.ivanli.cc;
|
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app comment.ivanli.cc localhost:8080;
|
||||||
style-src 'self' 'unsafe-inline' comment.ivanli.cc;
|
style-src 'self' 'unsafe-inline' comment.ivanli.cc localhost:8080;
|
||||||
img-src * blob: data:;
|
img-src * blob: data:;
|
||||||
media-src 'none';
|
media-src 'none';
|
||||||
connect-src *;
|
connect-src *;
|
||||||
font-src 'self' comment.ivanli.cc;
|
font-src 'self' comment.ivanli.cc localhost:8080;
|
||||||
frame-src giscus.app comment.ivanli.cc
|
frame-src giscus.app
|
||||||
`
|
`
|
||||||
|
|
||||||
const securityHeaders = [
|
const securityHeaders = [
|
||||||
|
Loading…
Reference in New Issue
Block a user