Commit baeadd5a authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent 8476c3a3
Pipeline #10697 failed with stages
in 3 seconds
......@@ -19,7 +19,7 @@ variables:
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: "unix:///var/run/docker.sock"
DOCKER_OPTS: "--data-root=/mnt/volume/docker-data"
DOCKER_MEMORY: "5g"
DOCKER_MEMORY: "4g"
DOCKER_CPUS: "2"
build:
......@@ -35,6 +35,7 @@ build:
- docker system prune -a -f --volumes || true
- docker container prune -f || true
- docker network prune -f || true
- docker image prune -a -f || true
- df -h
- free -h
- top -b -n 1
......@@ -46,6 +47,7 @@ build:
- docker volume prune -f
- docker container prune -f
- docker network prune -f
- docker image prune -a -f
script:
- docker build --cache-from=flask-backend-full --no-cache --progress=plain -t flask-backend-full -f flask_ml_api/Dockerfile .
- df -h
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment