TomatoFull commited on
Commit
19f6442
·
verified ·
1 Parent(s): b59d2cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -3
Dockerfile CHANGED
@@ -3,7 +3,13 @@ FROM debian:latest
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 bash ./wgrun
7
- COPY wg0.conf /etc/wireguard/wg0.conf
8
 
9
- ENTRYPOINT ["boringtun", "--foreground", "--port", "7860", "/etc/wireguard/wg0.conf"]
 
 
 
 
 
 
 
 
 
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
 
7
+ RUN echo "[Interface]\n\
8
+ PrivateKey = $PRIVATEKEY\n\
9
+ Address = 10.0.0.1/24\n\
10
+ ListenPort = 7860\n\n\
11
+ [Peer]\n\
12
+ PublicKey = $PUBLICKEY\n\
13
+ AllowedIPs = 10.0.0.2/32" > /etc/wireguard/wg0.conf
14
+
15
+ ENTRYPOINT ["/usr/local/bin/boringtun", "--foreground", "--port", "7860", "/etc/wireguard/wg0.conf"]