Skip to content

Commit

Permalink
install all dev dependencies with -g
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Mar 14, 2024
1 parent aa37e7c commit 99fa3aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions react/Dockerfile-Openshift
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
# RUN yes | npm run dist
FROM artifacts.developer.gov.bc.ca/docker-remote/node:20 as builder
ENV NODE_ENV=production
# ENV NODE_PATH=/usr/local/lib/node_modules:/usr/src/app/node_modules
ENV NODE_PATH=/usr/local/lib/node_modules:/usr/src/app/node_modules
WORKDIR /usr/src/app
COPY ./ ./
RUN npm install -g npm@latest
RUN npm install
# RUN yes | npm install -g webpack webpack-cli copy-webpack-plugin
RUN yes | npm install -g --only=dev
RUN echo $NODE_PATH
RUN pwd && \
ls -l && \
ls -l node_modules
# ls -l /usr/local/lib/node_modules
ls -l node_modules && \
ls -l /usr/local/lib/node_modules
RUN yes | npm run build
RUN pwd && \
ls -l
Expand Down

0 comments on commit 99fa3aa

Please sign in to comment.