clean
parent
a55945c094
commit
badca7084c
@ -0,0 +1,18 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: alpine.Dockerfile
|
||||||
|
ports:
|
||||||
|
- "5901:5900"
|
||||||
|
environment:
|
||||||
|
- EXTRA_CHROME_OPTION=--lang=fr-FR,fr
|
||||||
|
- X11_W=1024
|
||||||
|
- X11_H=768
|
||||||
|
- LANG=fr_FR.UTF-8
|
||||||
|
- LC_ALL=fr_FR.UTF-8
|
||||||
|
- URL=https://maps.google.fr
|
||||||
|
- URL2=https://maps.google.fr
|
||||||
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
FROM golang:1.11 as builder
|
|
||||||
|
|
||||||
WORKDIR /root/
|
|
||||||
RUN go get golang.org/x/time/rate && \
|
|
||||||
mkdir -p /go/src/github.com/snail007/ && \
|
|
||||||
cd /go/src/github.com/snail007/ && \
|
|
||||||
git clone https://github.com/snail007/goproxy.git && \
|
|
||||||
cd goproxy && \
|
|
||||||
sed -i 's@"proxy/@"github.com/snail007/goproxy/@g' config.go main.go services/*.go && \
|
|
||||||
CGO_ENABLED=0 go get . && \
|
|
||||||
cp auth-file blocked direct /go/bin
|
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:latest
|
|
||||||
WORKDIR /root/
|
|
||||||
COPY --from=builder /go/bin/* /root/
|
|
||||||
|
|
||||||
ENTRYPOINT [ "./goproxy"]
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
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/
|
|
||||||
CMD [ "/bin/sh" ]
|
|
||||||
#ENTRYPOINT [ "./proxy" ]
|
|
@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
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