Re-use Dockerfile when building on Travis

This commit is contained in:
Martin Polden
2019-03-16 18:08:10 +01:00
parent fd7e13c98e
commit 99f9556173
3 changed files with 8 additions and 10 deletions

View File

@ -2,8 +2,8 @@
FROM golang:1.12-stretch AS build
WORKDIR /go/src/github.com/mpolden/echoip
COPY . .
ENV GO111MODULE=on CGO_ENABLED=0
RUN go install ./...
ENV GO111MODULE=on
RUN make
# Run
FROM scratch