diff --git a/frontend/Dockerfile b/frontend/Dockerfile index fbcdb61..ba06ed8 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -27,4 +27,4 @@ COPY ./vite.config.js /code/longue_vue/vite.config.js COPY ./index.html /code/longue_vue/index.html COPY ./.env /code/longue_vue/.env -CMD ["npm", "exec", "vite", "--", "--host", "--port", "80", "--base", "/ui/"] +CMD ["npm", "run", "dev", "--", "--host", "--port", "80", "--base", "/ui/"] diff --git a/frontend/package.json b/frontend/package.json index 2c6e988..b0b48f4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,9 +10,9 @@ }, "type": "module", "scripts": { - "dev": "vite --port 3000", + "dev": "vite --port 80 --mode development", "build": "vite build", - "preview": "vite preview --port 3000", + "preview": "vite preview --port 80", "test": "vitest run", "coverage": "vitest run --coverage", "test:e2e:ci": "start-server-and-test preview http://localhost:3000/ 'cypress run --e2e'",