From fff73d37369c89047cbc1370abdca45cf9294df6 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Mon, 17 Nov 2025 18:48:21 -0500 Subject: [PATCH] Fixed dockerfile --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea410a3..17cc1fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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;"]