add proxy Dockerfile

This commit is contained in:
urielch 2019-04-13 09:58:30 +03:00
parent 3fa7e0cf8d
commit 01a4a65941
2 changed files with 16 additions and 0 deletions

11
proxy/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang as builder
WORKDIR /root/
RUN FILE=proxy-$(go env GOOS)-$(go env GOARCH).tar.gz && \
wget https://github.com/snail007/goproxy/releases/download/v7.3/$FILE -O $FILE && \
tar -xvzf $FILE && \
rm $FILE
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /root/* /root/
ENTRYPOINT [ "proxy" ]

5
proxy/README.md Normal file
View File

@ -0,0 +1,5 @@
docker build -t urielch/snail007-goproxy:v7.3-$(uname -s)-$(uname -m) .
docker push urielch/snail007-goproxy:v7.3-$(uname -s)-$(uname -m)