Skip to content

Commit

Permalink
Run npm install as root user
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Aug 27, 2024
1 parent 54f10c9 commit b2c193f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ ARG WEB_BASE_HREF=/
FROM centos/nodejs-${node_version}-centos7:${node_version}
ENV WEB_BASE_HREF=${WEB_BASE_HREF}
ENV WEB1_BASE_HREF=${WEB_BASE_HREF}
RUN ls -la
WORKDIR /opt/app-root/src
COPY ../../web .
RUN echo "$WEB1_BASE_HREF"
RUN echo "$WEB_BASE_HREF"
RUN npm install
USER root
RUN npm install
RUN npm run build

0 comments on commit b2c193f

Please sign in to comment.