Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
use latest alpine from docker hub, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ideahitme committed Dec 30, 2016
1 parent f513a6d commit a7f2a24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.opensource.zalan.do/stups/alpine:UPSTREAM
FROM alpine:latest
MAINTAINER Team Teapot @ Zalando SE <team-teapot@zalando.de>

# add scm-source
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ build/linux/$(BINARY): $(SOURCES)
build/osx/$(BINARY): $(SOURCES)
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build $(BUILD_FLAGS) -o build/osx/$(BINARY) -ldflags "$(LDFLAGS)" .

$(DOCKERFILE).upstream: $(DOCKERFILE)
sed "s@UPSTREAM@$(shell $(shell head -1 $(DOCKERFILE) | sed -E 's@FROM (.*)/(.*)/(.*):.*@pierone latest \2 \3 --url \1@'))@" $(DOCKERFILE) > $(DOCKERFILE).upstream

build.docker: $(DOCKERFILE).upstream scm-source.json build.linux
docker build --rm -t "$(IMAGE):$(TAG)" -f $(DOCKERFILE).upstream .
build.docker: $(DOCKERFILE) scm-source.json build.linux
docker build --rm -t "$(IMAGE):$(TAG)" -f $(DOCKERFILE) .

build.push: build.docker
docker push "$(IMAGE):$(TAG)"
Expand Down

0 comments on commit a7f2a24

Please sign in to comment.