Change the Dockerfile base to something that is unique - Allows to simply change a variable to point to a different base

This commit is contained in:
Praneeth Bodduluri 2014-07-10 16:00:12 +02:00 committed by Pablo Carranza Vélez
parent 451cb06faf
commit 2f861fc4d8
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
FROM resin/rpi-buildstep-armv6hf:latest
FROM resin/supervisor-base:latest
ADD . /app
RUN /build/builder

View File

@ -16,7 +16,7 @@ all: supervisor
supervisor:
docker pull $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION)
docker tag $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) resin/rpi-buildstep-armv6hf:latest
docker tag $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) resin/supervisor-base:latest
docker build --no-cache=$(DISABLE_CACHE) -t $(IMAGE):$(SUPERVISOR_VERSION) .
docker tag $(IMAGE):$(SUPERVISOR_VERSION) $(SUPERVISOR_REGISTRY)/$(IMAGE):$(SUPERVISOR_VERSION)