File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11DEV_REGISTRY ?= registry.drycc.cc
22DRYCC_REGISTRY ?= ${DEV_REGISTRY}
33IMAGE = "${DRYCC_REGISTRY}"/drycc/base:"${CODENAME}"-"$(shell dpkg --print-architecture) "
4+ BASE_LAYER = "${IMAGE}"-prebuild
45WORK_DIR = /workspace/"${CODENAME}"
56
67SHELLCHECK_PREFIX := docker run --rm -v ${CURDIR}:/workdir -w /workdir ${DRYCC_REGISTRY}/drycc/go-dev shellcheck
@@ -14,10 +15,13 @@ clean:
1415mkimage :
1516 ./scripts/mkimage.sh minbase " ${CODENAME} "
1617
17- docker-build : mkimage
18+ docker-import :
19+ @docker import ${WORK_DIR} .tar.gz ${BASE_LAYER}
20+
21+ docker-build : mkimage docker-import
1822 @docker build . \
1923 --tag ${IMAGE} \
20- --build-arg BASE_LAYER=$( shell docker import ${WORK_DIR}.tar.gz) \
24+ --build-arg BASE_LAYER=${BASE_LAYER} \
2125 --file Dockerfile
2226
2327docker-immutable-push : test-style build
You can’t perform that action at this time.
0 commit comments