From 66cc55094908129bb706eeebb6a03f79f192b5ca Mon Sep 17 00:00:00 2001 From: Dome Date: Fri, 28 Mar 2025 13:38:35 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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