forked from zerotier/ZeroTierOne
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdockerfile
executable file
·72 lines (56 loc) · 1.78 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# vim: ft=dockerfile
FROM python:3.11-slim-bullseye as stage
ARG PACKAGE_BASEURL=https://download.zerotier.com/debian/buster/pool/main/z/zerotier-one/
COPY download.sh /download.sh
RUN chmod +x /download.sh && VERSION=1.14.2 /download.sh
FROM python:3.11-slim-bullseye
RUN apt-get update -qq && apt-get install openssl libssl1.1 -y
COPY --from=stage zerotier-one.deb .
RUN dpkg -i zerotier-one.deb && rm -f zerotier-one.deb
RUN echo VERSION=1.14.0 >/etc/zerotier-version
RUN rm -rf /var/lib/zerotier-one
COPY entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
COPY web /web
RUN cd web && pip install .
LABEL permissions='\
{\
"NetworkMode":"host"\
,"HostConfig":{\
"Privileged": true,\
"NetworkMode":"host",\
"CapAdd":["SYS_ADMIN","NET_ADMIN"],\
"Binds":["/usr/blueos/extensions/zerotier:/var/lib/zerotier-one","/var/lib/zerotier-one:/old-settings"],\
"Devices":[\
{\
"PathOnHost":"/dev/net/tun",\
"PathInContainer":"/dev/net/tun",\
"CgroupPermissions":"rwm"\
}\
]\
}\
} '
LABEL authors='[\
{\
"name": "Willian Galvani",\
"email": "[email protected]"\
}\
]'
LABEL company='{\
"about": "",\
"name": "Blue Robotics",\
"email": "[email protected]"\
}'
LABEL type="other"
LABEL tags='[\
"communication"\
]'
LABEL readme='https://raw.githubusercontent.com/Williangalvani/ZeroTierOne/{tag}/README.md'
LABEL links='{\
"website": "https://github.com/Williangalvani/zerotierone",\
"support": "https://github.com/Williangalvani/zerotierone/issues"\
}'
LABEL requirements="core >= 1.1"
HEALTHCHECK --interval=1s CMD bash /healthcheck.sh
CMD []
ENTRYPOINT ["/entrypoint.sh"]