Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chatbot canifa
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
1
Merge Requests
1
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 canifa
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
Pipeline
#3303
passed with stage
in 2 minutes and 51 seconds
Changes
2
Pipelines
1
Show 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:
...
@@ -6,6 +6,7 @@ deploy_to_server:
# Chế độ shell chạy trực tiếp trên host
# Chế độ shell chạy trực tiếp trên host
script
:
script
:
-
echo "🚀 Bắt đầu quá trình Deploy từ Runner Path..."
-
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"
-
"
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
-
cd backend
-
docker compose up --build -d
-
docker compose up --build -d
...
...
backend/Dockerfile
View file @
1f56f9ce
...
@@ -11,8 +11,9 @@ ENV PYTHONDONTWRITEBYTECODE=1
...
@@ -11,8 +11,9 @@ ENV PYTHONDONTWRITEBYTECODE=1
# Copy requirements.txt trước để tận dụng Docker cache
# Copy requirements.txt trước để tận dụng Docker cache
COPY
requirements.txt .
COPY
requirements.txt .
# Cài đặt thư viện Python
# Cài đặt thư viện Python (Sử dụng cache mount để siêu nhanh)
RUN
pip
install
--no-cache-dir
-r
requirements.txt
RUN
--mount
=
type
=
cache,target
=
/root/.cache/pip
\
pip
install
-r
requirements.txt
# Copy toàn bộ source code vào image
# Copy toàn bộ source code vào image
COPY
. .
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