fix(docker): prune instead of omit (#216)
Some checks failed
Publish latest version / build (push) Failing after 35s
Some checks failed
Publish latest version / build (push) Failing after 35s
Reviewed-on: #216 Co-authored-by: Mylloon <kennel.anri@tutanota.com> Co-committed-by: Mylloon <kennel.anri@tutanota.com>
This commit is contained in:
parent
e2eb55a8f1
commit
fdabd1d95f
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:23-alpine
|
||||
FROM node:22-alpine
|
||||
|
||||
ENV DOCKERIZED=1
|
||||
RUN mkdir /config && \
|
||||
|
@ -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