-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
28 lines (20 loc) · 959 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Dockerfile for ZeroTierOne
FROM ubuntu:14.04
MAINTAINER Davide Marquês <nesrait@gmail.com>
RUN apt-get update && apt-get install -y curl
RUN apt-get -y install supervisor && \
mkdir -p /var/log/supervisor
RUN curl -s https://www.zerotier.com/dist/ZeroTierOneInstaller-linux-x64 > ZeroTierOneInstaller-linux-x64.sh && \
chmod a+x ZeroTierOneInstaller-linux-x64.sh && \
./ZeroTierOneInstaller-linux-x64.sh && \
rm ZeroTierOneInstaller-linux-x64.sh && \
sudo service zerotier-one stop && \
rm /var/lib/zerotier-one/zerotier-one.pid && \
echo "manual" >> /etc/init/zerotier-one.override && \
rm /var/lib/zerotier-one/identity.secret && \
rm /var/lib/zerotier-one/identity.public
# use supervisord to start zerotier
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 9993/udp
# Default command when starting the container
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]