Skip to content

Commit

Permalink
dockerfile path update
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc23007 committed Oct 17, 2024
1 parent dbe81d1 commit 4e4c28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Step 1: Build the React application
FROM node:14 AS build
WORKDIR /app
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
Expand All @@ -11,6 +11,6 @@ FROM nginx:stable-alpine
RUN chmod -R g+rwx /var/cache/nginx /var/run /var/log/nginx
RUN chown -R nginx:0 /usr/share/nginx/html && \
chmod -R g+rwX /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
COPY --from=build /usr/src/app /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 4e4c28b

Please sign in to comment.