summaryrefslogtreecommitdiff
path: root/tests/http/Dockerfile
blob: e19b3feef7ba382c205e5198c01db42e6559745a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM centos:latest

MAINTAINER https://www.zerotier.com/

EXPOSE 9993/udp

ADD nodesource-el.repo /etc/yum.repos.d/nodesource-el.repo
RUN yum -y update && yum install -y nodejs && yum clean all

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 /
ADD docker-main.sh /
RUN chmod a+x /docker-main.sh

CMD ["./docker-main.sh"]