Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -2,14 +2,14 @@ FROM alpine:latest
|
|
| 2 |
|
| 3 |
RUN set -ex && apk add --no-cache curl tar
|
| 4 |
|
| 5 |
-
ADD https://
|
| 6 |
RUN chmod +x /usr/local/bin/wgcf
|
| 7 |
|
| 8 |
-
ADD https://
|
| 9 |
-
RUN tar -xzf /tmp/
|
| 10 |
-
mv /tmp/wireproxy /usr/local/bin/
|
| 11 |
-
chmod +x /usr/local/bin/
|
| 12 |
-
rm -rf /tmp/
|
| 13 |
|
| 14 |
WORKDIR /config
|
| 15 |
RUN wgcf register --accept-tos && wgcf generate
|
|
@@ -23,7 +23,7 @@ EXPOSE 7860
|
|
| 23 |
RUN cat > /start.sh << 'EOF'
|
| 24 |
#!/bin/sh
|
| 25 |
|
| 26 |
-
cat > /
|
| 27 |
[Interface]
|
| 28 |
Address = $(grep -m1 Address /config/wgcf-profile.conf | cut -d' ' -f3)
|
| 29 |
DNS = 1.1.1.1
|
|
@@ -40,7 +40,7 @@ PersistentKeepalive = 25
|
|
| 40 |
BindAddress = 127.0.0.1:1080
|
| 41 |
EOC
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
sleep 3
|
| 46 |
|
|
|
|
| 2 |
|
| 3 |
RUN set -ex && apk add --no-cache curl tar
|
| 4 |
|
| 5 |
+
ADD https://git.new/wcgo /usr/local/bin/wgcf
|
| 6 |
RUN chmod +x /usr/local/bin/wgcf
|
| 7 |
|
| 8 |
+
ADD https://git.new/wpgo /tmp/wpgo.tar.gz
|
| 9 |
+
RUN tar -xzf /tmp/wpgo.tar.gz -C /tmp && \
|
| 10 |
+
mv /tmp/wireproxy /usr/local/bin/wpgo && \
|
| 11 |
+
chmod +x /usr/local/bin/wpgo && \
|
| 12 |
+
rm -rf /tmp/*
|
| 13 |
|
| 14 |
WORKDIR /config
|
| 15 |
RUN wgcf register --accept-tos && wgcf generate
|
|
|
|
| 23 |
RUN cat > /start.sh << 'EOF'
|
| 24 |
#!/bin/sh
|
| 25 |
|
| 26 |
+
cat > /wpgo.conf <<EOC
|
| 27 |
[Interface]
|
| 28 |
Address = $(grep -m1 Address /config/wgcf-profile.conf | cut -d' ' -f3)
|
| 29 |
DNS = 1.1.1.1
|
|
|
|
| 40 |
BindAddress = 127.0.0.1:1080
|
| 41 |
EOC
|
| 42 |
|
| 43 |
+
wpgo -c /wpgo.conf &
|
| 44 |
|
| 45 |
sleep 3
|
| 46 |
|