goproxy/Dockerfile

17 lines
301 B
Docker
Raw Normal View History

2018-12-26 14:03:22 +00:00
FROM golang:1.11 AS build
COPY ./ /goproxy
RUN cd /goproxy &&\
export GO111MODULE=on &&\
go generate &&\
go mod tidy &&\
go build
FROM alpine:3.8
RUN apk add --no-cache git mercurial subversion bzr fossil
2018-12-26 14:03:22 +00:00
COPY --from=build /goproxy/goproxy /bin/goproxy
2018-12-26 14:03:22 +00:00
EXPOSE 8081
CMD ["goproxy"]