From f2c968d32c17774a594d195fa4a25a8a18b86987 Mon Sep 17 00:00:00 2001 From: philipcheung Date: Sun, 16 Mar 2025 16:14:06 +0800 Subject: [PATCH] edited docker file --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6941dd6..01e6c16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ -FROM node:18-alpine +FROM node:20 AS build-stage WORKDIR /app -COPY package.json . +COPY package*.json /app/ RUN npm install -RUN npm i -g serve - -COPY . . +COPY ./ /app/ RUN npm run build