diff --git a/Dockerfile b/Dockerfile index b6afdcd90482e1466ac91b93fb0d89d5b7fb386b..9b017dc84f852d256425a794e7844ad15ed179bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ ARG DOCKER_REGISTRY=registry.cyberbrain.pw -FROM $DOCKER_REGISTRY/tools/docker/alpine:latest + +ARG ALPINE_IMAGE=tools/docker/alpine/main +ARG ALPINE_TAG=latest + +FROM $DOCKER_REGISTRY/$ALPINE_IMAGE:$ALPINE_TAG AS runtime RUN set -ex && \ apk --no-cache add bash curl jq && \ @@ -8,3 +12,5 @@ RUN set -ex && \ COPY entrypoint.sh /entrypoint.sh ENTRYPOINT [ "bash", "/entrypoint.sh" ] + +FROM runtime AS release