Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
|
@@ -1,10 +1,18 @@
|
|
| 1 |
FROM alpine:latest
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 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 |
WORKDIR /config
|
| 9 |
RUN wgcf register --accept-tos && wgcf generate
|
| 10 |
|
|
|
|
| 1 |
FROM alpine:latest
|
| 2 |
|
| 3 |
+
ARG SERVER_KEY
|
| 4 |
+
|
| 5 |
+
RUN set -ex && apk add --no-cache curl tar
|
| 6 |
|
| 7 |
ADD https://github.com/ViRb3/wgcf/releases/download/v2.2.30/wgcf_2.2.30_linux_amd64 /usr/local/bin/wgcf
|
| 8 |
RUN chmod +x /usr/local/bin/wgcf
|
| 9 |
|
| 10 |
+
ADD https://github.com/windtf/wireproxy/releases/download/v1.1.2/wireproxy_linux_amd64.tar.gz /tmp/wireproxy.tar.gz
|
| 11 |
+
RUN tar -xzf /tmp/wireproxy.tar.gz -C /tmp && \
|
| 12 |
+
mv /tmp/wireproxy /usr/local/bin/wireproxy && \
|
| 13 |
+
chmod +x /usr/local/bin/wireproxy && \
|
| 14 |
+
rm -rf /tmp/wireproxy*
|
| 15 |
+
|
| 16 |
WORKDIR /config
|
| 17 |
RUN wgcf register --accept-tos && wgcf generate
|
| 18 |
|