From 461786c5bf33087c317c8e502666f93f98c7401d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 2 Jan 2025 22:58:50 +0100 Subject: [PATCH 1/2] Revert "fix(docker): use node 23 instead of node 22 (#215)" This reverts commit e2eb55a8f1f13a6dbfc20ef623afd3ce41d5479b. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d5fa58..b42b304 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM node:23-alpine +FROM node:22-alpine ENV DOCKERIZED=1 RUN mkdir /config && \ -- 2.45.2 From e39c88a324a7e5bf990e2dfe7c601a5033a1015a Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 2 Jan 2025 23:02:45 +0100 Subject: [PATCH 2/2] use remove dev pkg instead of omitting them --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b42b304..f65315a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] -- 2.45.2