Fix docker builds

This commit is contained in:
Yarmo Mackenbach 2022-03-15 16:38:34 +01:00
parent 9b362b152f
commit 17d2b3e094
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 5 additions and 1 deletions

View file

@ -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/

View file

@ -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",