Skip to content

Commit

Permalink
install all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Mar 14, 2024
1 parent eb71f73 commit aa37e7c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions react/Dockerfile-Openshift
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,20 @@
# 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 --omit=dev
RUN yes | npm install -g webpack webpack-cli copy-webpack-plugin
RUN npm install
# RUN yes | npm install -g webpack webpack-cli copy-webpack-plugin
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 && \
tree

ls -l

# Stage 2: Copy the JS React SPA into the Nginx HTML directory
FROM artifacts.developer.gov.bc.ca/docker-remote/bitnami/nginx:1.24.0
Expand Down

0 comments on commit aa37e7c

Please sign in to comment.