Dockerfile 620 B

1234567891011121314151617
  1. # Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
  2. # Use of this source code is governed by a BSD-style
  3. # license that can be found in the LICENSE file.
  4. # Build with: docker build -t tailcontrol-alpine .
  5. # Run with: docker run --cap-add=NET_ADMIN --device=/dev/net/tun:/dev/net/tun -it tailcontrol-alpine
  6. FROM debian:stretch-slim
  7. RUN apt-get update && apt-get -y install iproute2 iptables
  8. RUN apt-get -y install ca-certificates
  9. RUN apt-get -y install nginx-light
  10. COPY relaynode /
  11. # tailcontrol -tun=wg0 -dbdir=$HOME/taildb >> tailcontrol.log 2>&1 &
  12. CMD ["/relaynode", "-R", "--config", "relay.conf"]