diff --git a/Dockerfile b/Dockerfile index 33c5aa0..52fc976 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,10 @@ COPY --from=builder /app/content /app/content COPY --from=builder /app/views /app/views COPY --from=builder /app/static /app/static +# Temporary fix until we make jsdom dependency play nice with ncc +# https://github.com/jsdom/jsdom/issues/2508 +RUN npm install jsdom + EXPOSE 3000 CMD node ./dist/ \ No newline at end of file diff --git a/package.json b/package.json index 35cefa4..cd2b06c 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "test": "mocha", "watch": "./node_modules/.bin/nodemon --config nodemon.json ./", "build": "yarn run build:server & yarn run build:static", - "build:server": "ncc build index.js -o dist", + "build:server": "ncc build index.js -e jsdom -o dist", "build:static": "webpack --config webpack.config.js --env static=true --env mode=production", "build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development", "license:check": "./node_modules/.bin/license-check-and-add check",