goproxy/Dockerfile

24 lines
320 B
Docker
Raw Normal View History

2019-01-10 05:23:55 +00:00
FROM golang:alpine AS build
2018-12-26 14:03:22 +00:00
2019-01-10 05:23:55 +00:00
RUN apk add --no-cache -U make
2018-12-26 14:03:22 +00:00
2019-01-10 05:23:55 +00:00
COPY . /src/goproxy
WORKDIR /src/goproxy
2019-01-10 05:23:55 +00:00
ENV CGO_ENABLED=0
RUN make
FROM alpine:latest
RUN apk add --no-cache -U git mercurial subversion bzr fossil
COPY --from=build /src/goproxy/goproxy /goproxy
VOLUME /go
2018-12-26 14:03:22 +00:00
EXPOSE 8081
2019-01-10 05:23:55 +00:00
ENTRYPOINT ["/goproxy"]
CMD []