Skip to content

Commit

Permalink
Merge pull request snail007#77 from FarhadF/dev
Browse files Browse the repository at this point in the history
Added Dockerfile
  • Loading branch information
snail007 committed May 15, 2018
2 parents a33a4d2 + 366b7e0 commit 54c22f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:1.8.5-alpine as builder
ARG GOPROXY_VERSION=master
RUN apk update && apk upgrade && \
apk add --no-cache git && cd /go/src/ && git clone https://github.com/snail007/goproxy && \
cd goproxy && git checkout ${GOPROXY_VERSION} && \
go get && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o proxy
FROM alpine:3.7
COPY --from=builder /go/src/goproxy/proxy /
CMD /proxy ${OPTS}

0 comments on commit 54c22f1

Please sign in to comment.