Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Son Of Anton
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Son Of Anton
Commits
a0e7911a
Commit
a0e7911a
authored
Apr 10, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: switch npm ci back to npm install --legacy-peer-deps, add diagnostics
parent
b8bd8d3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
Dockerfile
Dockerfile
+11
-4
No files found.
Dockerfile
View file @
a0e7911a
...
...
@@ -5,20 +5,27 @@ FROM node:20-alpine AS frontend-build
WORKDIR
/build/frontend
# Print versions for diagnostic purposes
RUN
echo
"=== Node/npm versions ==="
&&
node
--version
&&
npm
--version
# Nuke NODE_ENV — CapRover/Docker can inject production
# which prevents devDependencies (vite, tailwind) from installing
ENV
NODE_ENV=
COPY
frontend/package.json frontend/package-lock.json* ./
# Install ALL deps including dev (use ci for reproducible installs)
RUN
npm ci
--include
=
dev
&&
\
echo
"=== vite check ==="
&&
\
# npm install (not ci) — more forgiving of lockfile quirks
# --legacy-peer-deps avoids peer dep conflicts
# --prefer-offline uses cache when available
RUN
npm
install
--legacy-peer-deps
2>&1
&&
\
echo
"=== install done ==="
&&
\
ls
node_modules/.bin/vite
&&
\
./node_modules/.bin/vite
--version
COPY
frontend/ ./
RUN
NODE_ENV
=
production ./node_modules/.bin/vite build 2>&1
&&
\
RUN
echo
"=== starting vite build ==="
&&
\
NODE_ENV
=
production ./node_modules/.bin/vite build 2>&1
&&
\
echo
"=== dist ==="
&&
\
ls
-la
dist/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment