Skip to content

Commit

Permalink
copy dist from builder to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Dec 9, 2023
1 parent 13f4999 commit f56f21d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions frontend/Dockerfile.openshift
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ./ ./
RUN npm install --omit=dev && \
npm run build && \
ls -l
npm run build

# Stage 2: Copy the JS React SPA into the Nginx HTML directory
# FROM artifacts.developer.gov.bc.ca/docker-remote/bitnami/nginx:1.25.3
# COPY ./nginx.conf /opt/bitnami/nginx/conf/
# COPY --from=builder /usr/src/app/public/build /app
# EXPOSE 3000
# CMD ["nginx", "-g", "daemon off;"]
FROM artifacts.developer.gov.bc.ca/docker-remote/bitnami/nginx:1.24.0
COPY --from=builder /usr/src/app/dist /app
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit f56f21d

Please sign in to comment.