Skip to content

Commit

Permalink
chore: Update Dockerfile to copy files and directories for nginx depl…
Browse files Browse the repository at this point in the history
…oyment
  • Loading branch information
yusufseyrek committed Jun 27, 2024
1 parent 516fb4a commit ab6e449
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ RUN yarn build

#Stage 2
FROM nginx:1.19.0

COPY . /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf

WORKDIR /usr/share/nginx/html

RUN rm -rf ./*
COPY --from=builder /app/build .
ENTRYPOINT ["nginx", "-g", "daemon off;"]

0 comments on commit ab6e449

Please sign in to comment.