Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
7 |
|
8 |
-
|
|
|
1 |
+
FROM debian:latest
|
2 |
|
3 |
+
RUN apt update && apt install -y curl iproute2 && \
|
4 |
+
curl -Lo /usr/local/bin/boringtun https://github.com/cloudflare/boringtun/releases/download/$(curl -s https://api.github.com/repos/cloudflare/boringtun/releases/latest | grep tag_name | cut -d '"' -f 4)/boringtun-linux-amd64 && \
|
5 |
+
chmod +x /usr/local/bin/boringtun
|
6 |
+
RUN ./wgrun
|
7 |
+
COPY wg0.conf /etc/wireguard/wg0.conf
|
8 |
|
9 |
+
ENTRYPOINT ["boringtun", "--foreground", "--port", "7860", "/etc/wireguard/wg0.conf"]
|