Copy assets as part of npm postbuild

This commit is contained in:
3nprob 2021-10-08 03:38:31 +09:00
parent 9fa22e5200
commit dbb0906312
2 changed files with 1 additions and 4 deletions

View File

@ -11,10 +11,6 @@ RUN npm run build
FROM node:16-slim
COPY --from=builder /app/dist/ /app/
COPY --from=builder /app/package.json /app/
COPY --from=builder /app/package-lock.json /app/
COPY --from=builder /app/static/ /app/static/
COPY --from=builder /app/templates/ /app/templates/
WORKDIR /app

View File

@ -7,6 +7,7 @@
"scripts": {
"start": "node dist/index.js",
"build": "npx tsc",
"postbuild": "cp -a package.json package-lock.json templates static dist",
"lint": "eslint -c .eslintrc --max-warnings 0 'src/**/*.ts'",
"watch": "npx tsc --watch",
"test": "npx mocha -r ts-node/register test/**/*.test.ts",