fix permissions issues
This commit is contained in:
parent
3c1fee1de2
commit
903f3cb508
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue