From ea8ccc75984163f2e458d6086d3b962b8f9c6c7f Mon Sep 17 00:00:00 2001 From: Craig Johnston Date: Sun, 8 Apr 2018 02:15:20 +0000 Subject: [PATCH] arm32v6-1.0.4 --- Dockerfile | 2 +- Makefile | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c54b584..b9bd367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM arm32v6/golang:1.10.1 AS builder +FROM arm32v6/golang:1.10.1-alpine3.7 AS builder ENV GOPATH /go WORKDIR /go/src diff --git a/Makefile b/Makefile index af906c2..f62fdea 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,12 @@ all: build push dev: dev_build dev_run build: + docker build -t $(IMAGE):latest . docker build -t $(IMAGE):arm32v6-$(VERSION) . push: - docker push $(IMAGE) + docker build -t $(IMAGE):latest . + docker build -t $(IMAGE):arm32v6-$(VERSION) . dev_build: docker build -t $(IMAGE) ./dev/ @@ -19,6 +21,6 @@ dev_run: sudo docker run --rm -it --privileged --network=host \ -v $(CURDIR):/go/src/github.com/cjimti/iotwifi \ -w /go/src/github.com/cjimti/iotwifi \ - --name=$(NAME) $(IMAGE) + --name=$(NAME) $(IMAGE):latest