mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-18 06:53:30 +02:00
Re-use Dockerfile when building on Travis
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user