2015-10-28 20:35:52 +00:00
|
|
|
FROM centos:latest
|
|
|
|
|
|
|
|
MAINTAINER https://www.zerotier.com/
|
|
|
|
|
|
|
|
EXPOSE 9993/udp
|
|
|
|
|
2015-10-28 22:08:00 +00:00
|
|
|
ADD nodesource-el.repo /etc/yum.repos.d/nodesource-el.repo
|
|
|
|
RUN yum -y update && yum install -y nodejs && yum clean all
|
2015-10-28 20:35:52 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /var/lib/zerotier-one
|
|
|
|
RUN mkdir -p /var/lib/zerotier-one/networks.d
|
|
|
|
RUN touch /var/lib/zerotier-one/networks.d/ffffffffffffffff.conf
|
|
|
|
|
|
|
|
ADD package.json /
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
ADD zerotier-one /
|
|
|
|
RUN chmod a+x /zerotier-one
|
|
|
|
|
|
|
|
ADD agent.js /
|
2015-10-28 21:16:58 +00:00
|
|
|
ADD docker-main.sh /
|
2015-10-28 20:35:52 +00:00
|
|
|
RUN chmod a+x /docker-main.sh
|
|
|
|
|
|
|
|
CMD ["./docker-main.sh"]
|