Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KNIGHT
Asyst Moodle Plugin
Commits
f4ee4ef7
Commit
f4ee4ef7
authored
Jan 04, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
5684be37
Pipeline
#10686
failed with stages
in 13 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f4ee4ef7
...
...
@@ -39,6 +39,10 @@ build:
-
docker volume prune -f
script
:
-
docker build --cache-from=flask-backend-full --no-cache --progress=plain -t flask-backend-full -f flask_ml_api/Dockerfile .
-
docker save -o flask-backend-full.tar flask-backend-full
artifacts
:
paths
:
-
flask-backend-full.tar
cache
:
key
:
build-cache
paths
:
...
...
@@ -53,5 +57,7 @@ deploy:
services
:
-
name
:
docker:dind
command
:
[
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
before_script
:
-
docker load -i flask-backend-full.tar
script
:
-
docker run -d flask-backend-full
\ No newline at end of file
-
docker run -d flask-backend-full
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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