Update Dockerfile

This commit is contained in:
Dome
2025-03-28 13:38:35 +01:00
committed by GitHub
parent 3a0359c1b6
commit 66cc550949
+3 -3
View File
@@ -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