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
41f45d5e
Commit
41f45d5e
authored
Mar 19, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedDocker
parent
e7ac6b83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
Dockerfile
Dockerfile
+15
-3
No files found.
Dockerfile
View file @
41f45d5e
...
@@ -4,10 +4,22 @@
...
@@ -4,10 +4,22 @@
FROM
node:20-alpine AS frontend-build
FROM
node:20-alpine AS frontend-build
WORKDIR
/build/frontend
WORKDIR
/build/frontend
COPY
frontend/package.json frontend/package-lock.json* ./
RUN
npm
install
--legacy-peer-deps
# Copy everything so lockfile, configs (vite, tailwind, postcss) are all present
COPY
frontend/ ./
COPY
frontend/ ./
RUN
npm run build
# Install deps: use ci if lockfile exists, otherwise install and generate one
RUN if
[
-f
package-lock.json
]
;
then
\
echo
"📦 Found package-lock.json — running npm ci"
&&
\
npm ci
--legacy-peer-deps
;
\
else
\
echo
"⚠️ No package-lock.json — running npm install"
&&
\
npm
install
--legacy-peer-deps
;
\
fi
&&
\
npm cache clean
--force
# Build production bundle
RUN
NODE_ENV
=
production npm run build
# ============================================
# ============================================
# Stage 2: Python Backend + Serve Frontend
# Stage 2: Python Backend + Serve Frontend
...
...
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