diff --git a/Dockerfile b/Dockerfile index 836cd4c..0c81d07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN npm install COPY . . +RUN npm run build + EXPOSE 3000 -CMD ["npm", "run", "preview", "--", "--host", "--port", "3000"] \ No newline at end of file +CMD ["npm", "start"] \ No newline at end of file diff --git a/package.json b/package.json index 1d89f06..da5a9ab 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "vite build", "lint": "eslint .", - "preview": "vite preview" + "preview": "vite preview", + "start": "vite preview --host --port 3000" }, "dependencies": { "react": "^19.2.0",