Update Dockerfile to build binary with Go 1.10.x

Also add a .dockerignore file.
This commit is contained in:
2018-05-06 21:08:00 +01:00
parent 3e321d8ef5
commit 1c8b1a4d9d
2 changed files with 3 additions and 1 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
bin/*
releases/*

View File

@@ -1,4 +1,4 @@
FROM golang:1.9-alpine as builder FROM golang:1.10-alpine as builder
ADD . /go/src/github.com/jimeh/casecmp ADD . /go/src/github.com/jimeh/casecmp
WORKDIR /go/src/github.com/jimeh/casecmp WORKDIR /go/src/github.com/jimeh/casecmp
RUN CGO_ENABLED=0 go build -a -o /casecmp \ RUN CGO_ENABLED=0 go build -a -o /casecmp \