milvus/docker/deploy/docker-compose.yaml
quicksilver 1a6592f115
Improve efficiency in Docker build stage (#2334)
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
2020-05-13 22:26:11 +08:00

46 lines
1.1 KiB
YAML

version: '2.3'
services:
cpu_centos7:
image: ${TARGET_REPO}:${TARGET_TAG}
build:
context: ./
dockerfile: cpu/centos7/Dockerfile
cache_from:
- ${SOURCE_REPO}:${SOURCE_TAG}
gpu_centos7:
image: ${TARGET_REPO}:${TARGET_TAG}
build:
context: ./
dockerfile: gpu/centos7/Dockerfile
cache_from:
- ${SOURCE_REPO}:${SOURCE_TAG}
cpu_ubuntu16.04:
image: ${TARGET_REPO}:${TARGET_TAG}
build:
context: ./
dockerfile: cpu/ubuntu16.04/Dockerfile
cache_from:
- ${SOURCE_REPO}:${SOURCE_TAG}
gpu_ubuntu16.04:
image: ${TARGET_REPO}:${TARGET_TAG}
build:
context: ./
dockerfile: gpu/ubuntu16.04/Dockerfile
cache_from:
- ${SOURCE_REPO}:${SOURCE_TAG}
cpu_ubuntu18.04:
image: ${TARGET_REPO}:${TARGET_TAG}
build:
context: ./
dockerfile: cpu/ubuntu18.04/Dockerfile
cache_from:
- ${SOURCE_REPO}:${SOURCE_TAG}
gpu_ubuntu18.04:
image: ${TARGET_REPO}:${TARGET_TAG}
build:
context: ./
dockerfile: gpu/ubuntu18.04/Dockerfile
cache_from:
- ${SOURCE_REPO}:${SOURCE_TAG}