Commit 92d9ba9c authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent bdd84d73
Pipeline #10678 failed with stages
in 2 seconds
...@@ -22,7 +22,7 @@ variables: ...@@ -22,7 +22,7 @@ variables:
build: build:
stage: build stage: build
image: docker:latest image: docker:dind:20.10.21
services: services:
- name: docker:dind:20.10.21 - name: docker:dind:20.10.21
command: ["--tls=false", "--storage-driver=overlay2", "--mtu=1500", "--data-root=/mnt/volume"] command: ["--tls=false", "--storage-driver=overlay2", "--mtu=1500", "--data-root=/mnt/volume"]
...@@ -36,7 +36,7 @@ build: ...@@ -36,7 +36,7 @@ build:
- docker system prune -a -f - docker system prune -a -f
- docker volume prune -f - docker volume prune -f
script: script:
- docker build --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 .
cache: cache:
key: build-cache key: build-cache
paths: paths:
......
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