From c0959bd3097b9df5d535985674ce8fe553d95001 Mon Sep 17 00:00:00 2001 From: Chris Barry Date: Sat, 14 Oct 2017 20:20:10 -0400 Subject: [PATCH] Bump Go to 1.9, switch base image to Alpine --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c415d38..c1d94f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.4.2 +FROM golang:1.9-alpine3.6 # Copy the local package files to the container's workspace. ADD . /go/src/github.com/martin61/i2p-tools @@ -7,7 +7,9 @@ ADD . /go/src/github.com/martin61/i2p-tools WORKDIR /go/src/github.com/martin61/i2p-tools # Build everything -RUN go get +RUN apk add --no-cache --update git && \ + go get && \ + apk del git RUN go build -o /i2p-tools CMD ["/i2p-tools"]