diff --git a/Dockerfile b/Dockerfile index 4311ef82..2e9b1d1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile --non-interactive --ignore-scripts && yarn cache clean COPY . . -RUN NODE_NO_BUILD_DYNAMICS=true yarn typechain && yarn build +RUN NODE_NO_BUILD_DYNAMICS=true NODE_ENV=production yarn typechain && yarn build # public/runtime is used to inject runtime vars; it should exist and user node should have write access there for it RUN rm -rf /app/public/runtime && mkdir /app/public/runtime && chown node /app/public/runtime @@ -20,7 +20,9 @@ ARG BASE_PATH="" #ARG DEFAULT_CHAIN="1" ENV NEXT_TELEMETRY_DISABLED=1 \ - BASE_PATH=$BASE_PATH + BASE_PATH=$BASE_PATH \ + PORT=80 \ + NODE_ENV=production #SUPPORTED_CHAINS=$SUPPORTED_CHAINS \ #DEFAULT_CHAIN=$DEFAULT_CHAIN diff --git a/next.config.mjs b/next.config.mjs index 5d957aff..d8cb2f17 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -233,7 +233,8 @@ export default withBundleAnalyzer({ oneInchApiKey: process.env.ONE_INCH_API_KEY, - cspTrustedHosts: process.env.CSP_TRUSTED_HOSTS, + // DAPPNODE + cspTrustedHosts: 'https://*.lido.fi,http://*.dappnode', cspReportUri: process.env.CSP_REPORT_URI, cspReportOnly: process.env.CSP_REPORT_ONLY,