fix build

This commit is contained in:
raphael 2021-03-02 12:24:55 +01:00
parent b53817e50a
commit 8bf377631a
2 changed files with 4 additions and 7 deletions

View File

@ -14,9 +14,6 @@ COPY assets ./assets
COPY config ./config
RUN npm run build
# Create API Doc
RUN apidoc -i scripts/ -o public/apidoc/
#####################
# Final image
#####################
@ -37,4 +34,4 @@ COPY scripts ./scripts
COPY --from=base /opt/app/dist ./dist
EXPOSE 8080
ENTRYPOINT ["node", "scripts/server.js", "--mode=production"]
ENTRYPOINT ["npm", "run", "start"]

View File

@ -6,9 +6,9 @@
"directories": {},
"scripts": {
"build": "webpack --config config/webpack.build.js",
"start:dev": "apidoc -i scripts/ -o public/apidoc/ && node scripts/server.js --mode=development",
"start:prod": "apidoc -i scripts/ -o public/apidoc/ && npm run build && npm run start",
"start": "apidoc -i scripts/ -o public/apidoc/ && node scripts/server.js --mode=production",
"start:dev": "apidoc -i scripts/ -o ./public/apidoc/ && node scripts/server.js --mode=development",
"start:prod": "npm run build && npm run start",
"start": "apidoc -i scripts/ -o ./dist/apidoc/ && node scripts/server.js --mode=production",
"test": "jest",
"pretty-quick": "pretty-quick",
"format": "prettier --write .",