diff --git a/Dockerfile b/Dockerfile index 2bc5296c7c8535b10793e869f23eb48d25b531ff..4c84381530f605c297d46bddb7c467e79cc15925 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ ARG DOCKER_REGISTRY=registry.cyberbrain.pw -FROM $DOCKER_REGISTRY/tools/docker/git/main:latest + +ARG GIT_IMAGE=tools/docker/git/main +ARG GIT_TAG=latest + +FROM $DOCKER_REGISTRY/$GIT_IMAGE:$GIT_TAG AS runtime WORKDIR /tmp/openwrt @@ -14,3 +18,5 @@ RUN set -ex && \ COPY entrypoint.sh /entrypoint.sh COPY sync.sh /sync.sh + +FROM runtime AS release