mirror of https://github.com/goproxyio/goproxy
22 lines
372 B
Docker
22 lines
372 B
Docker
FROM golang:alpine AS build
|
|
|
|
RUN apk add --no-cache -U make git mercurial subversion bzr fossil
|
|
|
|
COPY . /src/goproxy
|
|
RUN cd /src/goproxy &&\
|
|
export CGO_ENABLED=0 &&\
|
|
make
|
|
|
|
FROM golang:alpine
|
|
|
|
RUN apk add --no-cache -U git mercurial subversion bzr fossil
|
|
|
|
COPY --from=build /src/goproxy/bin/goproxy /goproxy
|
|
|
|
VOLUME /go
|
|
|
|
EXPOSE 8081
|
|
|
|
ENTRYPOINT ["/goproxy"]
|
|
CMD []
|