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;"]