From 271425f1831154a32cebb1af5428de9480ac6bd3 Mon Sep 17 00:00:00 2001 From: philipcheung Date: Sun, 16 Mar 2025 21:56:05 +0800 Subject: [PATCH] chaged the docker file --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1316dc..aaa64f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,10 @@ WORKDIR /app COPY package.json . RUN npm install - +RUN npm install -g serve COPY . . - +RUN npm run build EXPOSE 3000 -CMD ["npm", "run", "dev"] \ No newline at end of file +CMD ["serve", "-s", "dist", "-l", "3000"] \ No newline at end of file