mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
Fix docker builds
This commit is contained in:
parent
9b362b152f
commit
17d2b3e094
2 changed files with 5 additions and 1 deletions
|
@ -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/
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue