Copy assets as part of npm postbuild
This commit is contained in:
parent
9fa22e5200
commit
dbb0906312
|
@ -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
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue