mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-23 14:52:24 +00:00
20 lines
436 B
Docker
20 lines
436 B
Docker
FROM centos:7
|
|
|
|
MAINTAINER https://www.zerotier.com/
|
|
|
|
RUN yum -y update && yum clean all
|
|
|
|
EXPOSE 9993/udp
|
|
|
|
RUN mkdir -p /var/lib/zerotier-one
|
|
RUN mkdir -p /var/lib/zerotier-one/networks.d
|
|
RUN ln -sf /var/lib/zerotier-one/zerotier-one /usr/local/bin/zerotier-cli
|
|
RUN ln -sf /var/lib/zerotier-one/zerotier-one /usr/local/bin/zerotier-idtool
|
|
|
|
ADD zerotier-one /var/lib/zerotier-one/
|
|
|
|
ADD main.sh /
|
|
RUN chmod a+x /main.sh
|
|
|
|
CMD ["./main.sh"]
|