TomatoFull commited on
Commit
9bae19a
·
verified ·
1 Parent(s): 00cd300

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,8 +1,9 @@
1
- FROM linuxserver/wireguard
2
 
3
- ENV SERVERURL=http://tomatofull-jjsjejnssskwlsj83.hf.space:80
4
- ENV SERVERPORT=7860
5
- ENV PEERS=1
6
- ENV PEERDNS=1.1.1.1
 
7
 
8
- CMD ["/init"]
 
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"]