Dockerfile 518 B

12345678910111213141516171819202122232425
  1. FROM centos:latest
  2. MAINTAINER https://www.zerotier.com/
  3. EXPOSE 9993/udp
  4. ADD nodesource-el.repo /etc/yum.repos.d/nodesource-el.repo
  5. RUN yum -y update && yum install -y nodejs && yum clean all
  6. RUN mkdir -p /var/lib/zerotier-one
  7. RUN mkdir -p /var/lib/zerotier-one/networks.d
  8. RUN touch /var/lib/zerotier-one/networks.d/ffffffffffffffff.conf
  9. ADD package.json /
  10. RUN npm install
  11. ADD zerotier-one /
  12. RUN chmod a+x /zerotier-one
  13. ADD agent.js /
  14. ADD docker-main.sh /
  15. RUN chmod a+x /docker-main.sh
  16. CMD ["./docker-main.sh"]