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: ...@@ -19,7 +19,7 @@ variables:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: "unix:///var/run/docker.sock" DOCKER_HOST: "unix:///var/run/docker.sock"
DOCKER_OPTS: "--data-root=/mnt/volume/docker-data" DOCKER_OPTS: "--data-root=/mnt/volume/docker-data"
DOCKER_MEMORY: "5g" DOCKER_MEMORY: "4g"
DOCKER_CPUS: "2" DOCKER_CPUS: "2"
build: build:
...@@ -35,6 +35,7 @@ build: ...@@ -35,6 +35,7 @@ build:
- docker system prune -a -f --volumes || true - docker system prune -a -f --volumes || true
- docker container prune -f || true - docker container prune -f || true
- docker network prune -f || true - docker network prune -f || true
- docker image prune -a -f || true
- df -h - df -h
- free -h - free -h
- top -b -n 1 - top -b -n 1
...@@ -46,6 +47,7 @@ build: ...@@ -46,6 +47,7 @@ build:
- docker volume prune -f - docker volume prune -f
- docker container prune -f - docker container prune -f
- docker network prune -f - docker network prune -f
- docker image prune -a -f
script: script:
- docker build --cache-from=flask-backend-full --no-cache --progress=plain -t flask-backend-full -f flask_ml_api/Dockerfile . - docker build --cache-from=flask-backend-full --no-cache --progress=plain -t flask-backend-full -f flask_ml_api/Dockerfile .
- df -h - 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