use remove dev pkg instead of omitting them
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 32s
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 32s
This commit is contained in:
parent
461786c5bf
commit
e39c88a324
1 changed files with 3 additions and 2 deletions
|
@ -11,10 +11,11 @@ WORKDIR /app
|
|||
COPY --chown=node:node . .
|
||||
|
||||
ENV NODE_ENV=production
|
||||
RUN npm ci --omit=dev && \
|
||||
RUN npm ci && \
|
||||
npm run compile && \
|
||||
npm prune --production && \
|
||||
npm uninstall typescript && \
|
||||
rm -r src/ tsconfig.json && \
|
||||
npm uninstall typescript @types/sqlite3 && \
|
||||
npm cache clean --force
|
||||
|
||||
CMD ["dumb-init", "node", "./dist/index.js"]
|
||||
|
|
Loading…
Reference in a new issue