dominiciao commited on
Commit
367d714
·
verified ·
1 Parent(s): 2d74271

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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://github.com/ViRb3/wgcf/releases/download/v2.2.30/wgcf_2.2.30_linux_amd64 /usr/local/bin/wgcf
6
  RUN chmod +x /usr/local/bin/wgcf
7
 
8
- ADD https://github.com/windtf/wireproxy/releases/download/v1.1.2/wireproxy_linux_amd64.tar.gz /tmp/wireproxy.tar.gz
9
- RUN tar -xzf /tmp/wireproxy.tar.gz -C /tmp && \
10
- mv /tmp/wireproxy /usr/local/bin/wireproxy && \
11
- chmod +x /usr/local/bin/wireproxy && \
12
- rm -rf /tmp/wireproxy*
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 > /wireproxy.conf <<EOC
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
- wireproxy -c /wireproxy.conf &
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