diff --git a/Dockerfile b/Dockerfile index 197598f..35ddfb4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ # Stage 1: Build -FROM node:20-alpine AS build +FROM node:20.2-alpine AS build WORKDIR /app COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile && yarn cache clean +RUN yarn install --frozen-lockfile --production && yarn cache clean COPY . . # Stage 2: Production @@ -10,7 +10,7 @@ FROM nginx:alpine COPY --from=build /app/build /usr/share/nginx/html COPY nginx.conf /etc/nginx/nginx.conf -# Expose ports 80 and 443 +# Expose port 80 EXPOSE 80 EXPOSE 443