Skip to content

Commit

Permalink
Make the .npm directory writable by the root group (#1256)
Browse files Browse the repository at this point in the history
Signed-off-by: Landon LaSmith <LLaSmith@redhat.com>
  • Loading branch information
LaVLaS committed May 18, 2023
1 parent 165f00c commit 0d3144a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY --chown=default:root ${SOURCE_CODE} /usr/src/app
# Change file ownership to the assemble user
USER default

RUN npm cache clean --force
RUN npm cache clean --force

RUN npm ci --omit=optional

Expand All @@ -39,7 +39,7 @@ COPY --chown=default:root --from=builder /usr/src/app/.npmrc /usr/src/app/backen
COPY --chown=default:root --from=builder /usr/src/app/.env /usr/src/app/.env
COPY --chown=default:root --from=builder /usr/src/app/data /usr/src/app/data

RUN cd backend && npm cache clean --force && npm ci --omit=dev --omit=optional
RUN cd backend && npm cache clean --force && npm ci --omit=dev --omit=optional && chmod -R g+w /opt/app-root/src/.npm

WORKDIR /usr/src/app/backend

Expand Down

0 comments on commit 0d3144a

Please sign in to comment.