Fixed dockerfile

This commit is contained in:
Camerin Figueroa 2025-11-17 18:48:21 -05:00
parent fdf5f7da0c
commit fff73d3736
1 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Build Stage
FROM node:18-alpine AS BUILD
FROM node:22-alpine AS build
# Set the working directory inside the container
WORKDIR /app
@ -12,9 +12,11 @@ RUN npm ci
# Copy the rest of your application files
COPY . .
RUN npm run build
# Production Stage
FROM nginx:stable-alpine AS PRODUCTION
COPY --from=build /app/build /usr/share/nginx/html
FROM nginx:stable-alpine AS production
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]