Skip to content

Commit

Permalink
Merge pull request #94 from bcgov/akroon3r-patch-1
Browse files Browse the repository at this point in the history
Creating PROD Dockerfile
  • Loading branch information
JlevesqueAtBC authored Jul 3, 2024
2 parents 3746396 + e1a3d30 commit 5cdc5be
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions frontend/.docker/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM node:14 as build

WORKDIR /app

COPY . .

RUN npm install

RUN npm run build

FROM nginx:1.24-alpine as prod

COPY nginx.conf /etc/nginx/conf.d/default.conf

WORKDIR /usr/share/nginx/html

RUN rm -rf ./*

COPY --from=build /app/build .

RUN chmod g+rwx /var/cache/nginx /var/run /var/log/nginx

EXPOSE 3000

ENTRYPOINT ["nginx", "-g", "daemon off;"]

0 comments on commit 5cdc5be

Please sign in to comment.