Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chatbot_order
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
Vũ Hoàng Anh
chatbot_order
Commits
1f56f9ce
Commit
1f56f9ce
authored
Dec 29, 2025
by
Vũ Hoàng Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: enable buildkit and pip cache mount for super fast build
parent
9cb5f9be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
Dockerfile
backend/Dockerfile
+3
-2
No files found.
.gitlab-ci.yml
View file @
1f56f9ce
...
...
@@ -6,6 +6,7 @@ deploy_to_server:
# Chế độ shell chạy trực tiếp trên host
script
:
-
echo "🚀 Bắt đầu quá trình Deploy từ Runner Path..."
-
export DOCKER_BUILDKIT=1
-
"
if
[
-f
/home/anhvh/canifa_soure/chatbot-canifa/backend/.env
];
then
cp
/home/anhvh/canifa_soure/chatbot-canifa/backend/.env
backend/.env;
fi"
-
cd backend
-
docker compose up --build -d
...
...
backend/Dockerfile
View file @
1f56f9ce
...
...
@@ -11,8 +11,9 @@ ENV PYTHONDONTWRITEBYTECODE=1
# Copy requirements.txt trước để tận dụng Docker cache
COPY
requirements.txt .
# Cài đặt thư viện Python
RUN
pip
install
--no-cache-dir
-r
requirements.txt
# Cài đặt thư viện Python (Sử dụng cache mount để siêu nhanh)
RUN
--mount
=
type
=
cache,target
=
/root/.cache/pip
\
pip
install
-r
requirements.txt
# Copy toàn bộ source code vào image
COPY
. .
...
...
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