diff --git a/Dockerfile b/Dockerfile index 921665c..c631aee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM alpine:3 +ARG alpine + +FROM ${alpine} AS resource ARG VERSION ARG BUILD_DATE @@ -21,4 +23,4 @@ RUN chmod +x /opt/resource/out /opt/resource/in /opt/resource/check ADD test/ /opt/resource-tests/ RUN /opt/resource-tests/all.sh \ - && rm -rf /tmp/* + && rm -rf /tmp/* diff --git a/Makefile b/Makefile index 8d98caf..3c078b9 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ VERSION ?= dev build: docker build \ + --build-arg alpine="alpine:3" \ --build-arg BUILD_DATE="$(shell date -u --iso-8601)" \ --build-arg VCS_REF="$(shell git rev-parse --short HEAD)" \ --build-arg VERSION="$(VERSION)" \