From 97a242826de35585f29cbf5817cbd60679dee2be Mon Sep 17 00:00:00 2001 From: philipcheung Date: Sun, 16 Mar 2025 16:34:27 +0800 Subject: [PATCH] test --- Dockerfile | 6 +----- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2245700..ed0d977 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,8 @@ COPY package.json . RUN npm install -RUN npm i -g serve - COPY . . -RUN npm run build - EXPOSE 3000 -CMD [ "serve", "-s", "dist", "-l", "3000" ] +CMD ["npm", "run", "build"] diff --git a/vite.config.ts b/vite.config.ts index d8ba69b..bb506d9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ server: { port: 3000, strictPort: true, - host: '127.0.0.1', + host: true, origin: "http://0.0.0.0:3000", }, })