Use go modules (#15)
This commit is contained in:
committed by
Ludovic Fernandez
parent
2bc53608e9
commit
c835c52085
@ -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
|
||||
|
Reference in New Issue
Block a user