From 903f3cb50836a1b5323e8780e487b7b92142ead4 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 17 Jan 2023 13:11:14 +0100 Subject: [PATCH 1/2] fix permissions issues --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f0a30d3..c4abafa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ RUN chown node:node /config RUN apk add dumb-init ENV NODE_ENV=production -USER node WORKDIR /app COPY --chown=node:node . . @@ -19,4 +18,5 @@ RUN npx tsc RUN rm -r src/ tsconfig.json RUN npm uninstall typescript @types/sqlite3 +USER node CMD ["dumb-init", "node", "./dist/index.js"] -- 2.45.2 From 75b9ec5e39265c60184fc8a4a456400de73a6a1e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 17 Jan 2023 13:19:58 +0100 Subject: [PATCH 2/2] remove USER node --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c4abafa..3a302a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,5 +18,4 @@ RUN npx tsc RUN rm -r src/ tsconfig.json RUN npm uninstall typescript @types/sqlite3 -USER node CMD ["dumb-init", "node", "./dist/index.js"] -- 2.45.2