fix(docker): prune instead of omit #216

Merged
Anri merged 2 commits from docker into main 2025-01-02 23:03:42 +01:00
Showing only changes of commit e39c88a324 - Show all commits

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