use remove dev pkg instead of omitting them
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 32s

This commit is contained in:
Mylloon 2025-01-02 23:02:45 +01:00
parent 461786c5bf
commit e39c88a324
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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"]