Skip to content

Commit

Permalink
Always --pull during docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
ixdy committed Jun 13, 2017
1 parent 8ba8f9c commit 6017b66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ build: bin/$(ARCH)/$(BIN)

bin/$(ARCH)/$(BIN): build-dirs
@echo "building: $@"
@docker pull $(BUILD_IMAGE)
@docker run \
-ti \
-u $$(id -u):$$(id -g) \
Expand All @@ -106,7 +107,7 @@ container: .container-$(DOTFILE_IMAGE) container-name
-e 's|ARG_ARCH|$(ARCH)|g' \
-e 's|ARG_FROM|$(BASEIMAGE)|g' \
Dockerfile.in > .dockerfile-$(ARCH)
@docker build -t $(IMAGE):$(VERSION) -f .dockerfile-$(ARCH) .
@docker build --pull -t $(IMAGE):$(VERSION) -f .dockerfile-$(ARCH) .
@docker images -q $(IMAGE):$(VERSION) > $@

container-name:
Expand Down

0 comments on commit 6017b66

Please sign in to comment.