Skip to content

Commit

Permalink
Dockerfile from updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc23007 committed Oct 17, 2024
1 parent 4e4c28b commit 65b6630
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,13 +1,13 @@
# Step 1: Build the React application
FROM node:14 AS build
FROM node:20 AS build
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# Step 2: Serve the app using NGINX
FROM nginx:stable-alpine
FROM nginxinc/nginx-unprivileged:mainline
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
Expand Down

0 comments on commit 65b6630

Please sign in to comment.