Skip to content

Commit

Permalink
remove node user from docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jwetzell committed May 4, 2024
1 parent fcaf929 commit 93d17ed
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cli/Dockerfile
Expand Up @@ -2,11 +2,10 @@ FROM node:20.12.2-alpine
ENV NODE_ENV production
RUN apk add --no-cache tini
WORKDIR /app
COPY --chown=node:node package*.json .
COPY package*.json .
RUN npm ci
COPY --chown=node:node main.js main.js
COPY --chown=node:node schema schema
COPY --chown=node:node sample/config/default.json sample/config/default.json
COPY --chown=node:node sample/vars/default.json sample/vars/default.json
USER node
COPY main.js main.js
COPY schema schema
COPY sample/config/default.json sample/config/default.json
COPY sample/vars/default.json sample/vars/default.json
ENTRYPOINT [ "/sbin/tini", "/app/main.js"]

0 comments on commit 93d17ed

Please sign in to comment.