Update Dockerfile

This commit is contained in:
Dome
2025-03-28 14:22:19 +01:00
committed by GitHub
parent 684f3f70dd
commit 334393b9de
+2 -2
View File
@@ -1,12 +1,12 @@
# Stage 1: Build # Stage 1: Build
FROM node:20.2-alpine3.15 AS build FROM node:20.2-alpine AS build
WORKDIR /app WORKDIR /app
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --production && yarn cache clean RUN yarn install --frozen-lockfile --production && yarn cache clean
COPY . . COPY . .
# Stage 2: Production # Stage 2: Production
FROM nginx:alpine3.15 FROM nginx:alpine
WORKDIR /etc/nginx WORKDIR /etc/nginx
COPY ./nginx.conf /etc/nginx/nginx.conf COPY ./nginx.conf /etc/nginx/nginx.conf
WORKDIR /usr/share/nginx/html WORKDIR /usr/share/nginx/html