add proxy Dockerfile
This commit is contained in:
parent
3fa7e0cf8d
commit
01a4a65941
11
proxy/Dockerfile
Normal file
11
proxy/Dockerfile
Normal 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
5
proxy/README.md
Normal 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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user