Dockerfile 471 B

1234567891011121314151617181920
  1. FROM centos:7
  2. MAINTAINER https://www.zerotier.com/
  3. RUN yum -y update && yum install -y sqlite net-tools && yum clean all
  4. EXPOSE 9993/udp
  5. RUN mkdir -p /var/lib/zerotier-one
  6. RUN mkdir -p /var/lib/zerotier-one/networks.d
  7. RUN ln -sf /var/lib/zerotier-one/zerotier-one /usr/local/bin/zerotier-cli
  8. RUN ln -sf /var/lib/zerotier-one/zerotier-one /usr/local/bin/zerotier-idtool
  9. ADD zerotier-one /var/lib/zerotier-one/
  10. ADD main.sh /
  11. RUN chmod a+x /main.sh
  12. CMD ["./main.sh"]