Commit b8bd8d3d authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix Docker build: npm ci + direct vite binary + package.json metadata

parent 49192084
......@@ -11,14 +11,14 @@ ENV NODE_ENV=
COPY frontend/package.json frontend/package-lock.json* ./
# Force ALL deps including dev
RUN npm install --legacy-peer-deps --include=dev && \
# Install ALL deps including dev (use ci for reproducible installs)
RUN npm ci --include=dev && \
echo "=== vite check ===" && \
npx vite --version
./node_modules/.bin/vite --version
COPY frontend/ ./
RUN NODE_ENV=production npx vite build && \
RUN NODE_ENV=production ./node_modules/.bin/vite build 2>&1 && \
echo "=== dist ===" && \
ls -la dist/
......
{
"name": "son-of-anton-frontend",
"version": "1.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"lucide-react": "^0.469.0",
"react": "^18.3.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment