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

Image build is optimized.

parent 162dc1f3
Pipeline #10722 failed
...@@ -20,22 +20,22 @@ variables: ...@@ -20,22 +20,22 @@ variables:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
DOCKER_DAEMON_TIMEOUT: 300 DOCKER_DAEMON_TIMEOUT: 300
# DOCKER_HOST: "unix:///var/run/docker.sock" # DOCKER_HOST: "unix:///var/run/docker.sock"
DOCKER_HOST: tcp://docker:2375/ DOCKER_HOST: "tcp://localhost:2375"
DOCKER_OPTS: "--data-root=/mnt/volume/docker-data" DOCKER_OPTS: "--data-root=/mnt/volume/docker-data"
DOCKER_MEMORY: "4g" DOCKER_MEMORY: "4g"
DOCKER_CPUS: "2" DOCKER_CPUS: "2"
build: build:
image: docker:latest image: docker:dind
services: services:
- name: docker:dind - name: docker:dind
command: ["--tls=false", "--storage-driver=overlay2", "--mtu=1500", "--data-root=/mnt/volume"] command: ["--host=tcp://0.0.0.0:2375", "--tls=false", "--storage-driver=overlay2", "--mtu=1500", "--data-root=/mnt/volume"]
script: script:
- echo "Building the Flask project" - echo "Building the Flask project"
- docker build -t $DOCKER_REPO:flask . - docker build -t $DOCKER_REPO:flask .
containerize: containerize:
image: docker:latest image: docker:dind
services: services:
- docker:dind - docker:dind
script: script:
......
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