Use go modules (#15)

This commit is contained in:
Alan Scherger
2019-01-09 16:58:52 -06:00
committed by Ludovic Fernandez
parent 2bc53608e9
commit c835c52085
6 changed files with 9 additions and 56 deletions

View File

@ -1,12 +1,10 @@
FROM golang:1.10 as builder
WORKDIR /go/src/github.com/containous/whoami
FROM golang:1.11 as builder
WORKDIR /go/whoami
COPY . .
RUN go get -u github.com/golang/dep/cmd/dep
RUN make dependencies
RUN make build
# Create a minimal container to run a Golang static binary
FROM scratch
COPY --from=builder /go/src/github.com/containous/whoami/whoami .
COPY --from=builder /go/whoami/whoami .
ENTRYPOINT ["/whoami"]
EXPOSE 80