Skip to content

Commit

Permalink
add infra
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan committed Apr 9, 2024
1 parent e880f1b commit 4b9f376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

FROM node:latest as build
FROM node:latest as build_frontend


WORKDIR /usr/src/app
WORKDIR /app

#COPY ./frontend/package.json ./frontend/package-lock.json /usr/src/app/

Expand All @@ -13,7 +13,7 @@ RUN npm run build


FROM nginx:latest
COPY --from=build /usr/app/build /usr/share/nginx/html
COPY --from=build_frontend /app/build /usr/share/nginx/html
COPY ./docker/nginx/nginx.conf /etc/nginx/conf.d/default.conf

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

0 comments on commit 4b9f376

Please sign in to comment.