Skip to content

Commit

Permalink
fix: add nginx in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeap committed Aug 1, 2023
1 parent 740fd49 commit 69ddd09
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ WORKDIR /app
COPY package*.json ./
RUN yarn install
COPY . .
RUN yarn run build
RUN yarn run build

# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 69ddd09

Please sign in to comment.