fix permissions issues

This commit is contained in:
Mylloon 2023-01-17 13:11:14 +01:00
parent 3c1fee1de2
commit 903f3cb508
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -8,7 +8,6 @@ RUN chown node:node /config
RUN apk add dumb-init RUN apk add dumb-init
ENV NODE_ENV=production ENV NODE_ENV=production
USER node
WORKDIR /app WORKDIR /app
COPY --chown=node:node . . COPY --chown=node:node . .
@ -19,4 +18,5 @@ RUN npx tsc
RUN rm -r src/ tsconfig.json RUN rm -r src/ tsconfig.json
RUN npm uninstall typescript @types/sqlite3 RUN npm uninstall typescript @types/sqlite3
USER node
CMD ["dumb-init", "node", "./dist/index.js"] CMD ["dumb-init", "node", "./dist/index.js"]