diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 25f7cb8..602e977 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -85,7 +85,7 @@ jobs: - name: Install backend dependencies working-directory: ./backend - run: npm install + run: npm ci - name: Run TypeScript check working-directory: ./backend diff --git a/Dockerfile b/Dockerfile index a2418cc..0189bf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,8 @@ COPY tsconfig.base.json ./ COPY ecosystem.config.cjs ./ # Install root dependencies -RUN npm install --only=production +#RUN npm install --only=production +RUN npm ci # Copy workspace files COPY backend/ ./backend/ @@ -30,7 +31,7 @@ RUN npm install --workspace=frontend RUN npm run build --only=production --workspace=backend # Build frontend -RUN npm run build --workspace=frontend +RUN npm run build --only=production --workspace=frontend # Verify Python and OR-Tools installation RUN python -c "from ortools.sat.python import cp_model; print('OR-Tools installed successfully')" diff --git a/frontend/package.json b/frontend/package.json index cb904f3..bd48498 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,7 +7,9 @@ "react": "^19.0.0", "react-dom": "^19.0.0", "react-router-dom": "^6.28.0", - "date-fns": "4.1.0" + "date-fns": "4.1.0", + "@vitejs/plugin-react": "^4.3.3", + "vite": "^6.0.7" }, "devDependencies": { "@types/node": "20.19.23",