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