Skip to content

Commit

Permalink
fix: Dockerfile build permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Dec 18, 2023
1 parent e932a47 commit 3019cec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ RUN npm i pnpm -g
RUN apk add --no-cache --virtual build-deps git lz4 python3 make g++
RUN apk add --no-cache curl
COPY --chown=node:node . .
# USER node
USER node

RUN export GIT_REMOTE_PROTOCOL=https \
&& pnpm run setup \
&& pnpm run --silent get_rev > .current_rev \
&& pnpm run --silent get_rev > .current_rev
# && pnpm run clean_on_prod \
# && (pnpm i --production || true)
# USER root
USER root
# clean up dependecies from the "build-deps" virtual package
RUN apk del build-deps
USER node
Expand Down

0 comments on commit 3019cec

Please sign in to comment.