Skip to content

Commit

Permalink
Merge pull request #736 from bcgov/feat/coms-fix
Browse files Browse the repository at this point in the history
trying to change the user as outlined in the openshift error msg
  • Loading branch information
nikhila-aot authored Dec 5, 2024
2 parents f943840 + 8b07819 commit 5ee2458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comsapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ WORKDIR ${APP_ROOT}

# NPM Permission Fix
RUN mkdir -p /.npm
RUN chown -R 1001:0 /.npm
RUN chown -R 1005690000:0 /.npm

# Install Application
COPY . ${APP_ROOT}
RUN chown -R 1001:0 ${APP_ROOT}
USER 1001
RUN chown -R 1005690000:0 ${APP_ROOT}
USER 1005690000
WORKDIR ${APP_ROOT}/app
RUN npm ci --omit=dev

Expand Down

0 comments on commit 5ee2458

Please sign in to comment.