From 64c4ee8f6301f94c40b9a3346b0f489a927b40d1 Mon Sep 17 00:00:00 2001 From: philipcheung Date: Sun, 16 Mar 2025 21:39:01 +0800 Subject: [PATCH] updated --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf1c65a..d8cc42e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,15 +3,15 @@ FROM node:18-alpine WORKDIR /app COPY package.json . + RUN npm install -RUN npm install -g serve + +RUN npm i -g serve COPY . . -RUN npm run build -COPY --from=build /app/dist ./dist +RUN npm run build EXPOSE 3000 -# Serve the static files after building -CMD ["serve", "-s", "dist", "-l", "3000"] \ No newline at end of file +CMD [ "serve", "-s", "dist" ] \ No newline at end of file