2021-02-24 11:43:45 +00:00
|
|
|
# vim: ft=dockerfile
|
|
|
|
|
2022-08-23 19:59:52 +00:00
|
|
|
FROM debian:bullseye
|
2021-02-24 11:43:45 +00:00
|
|
|
|
2022-09-13 19:23:43 +00:00
|
|
|
ARG VERSION
|
|
|
|
|
2022-08-23 19:59:52 +00:00
|
|
|
RUN apt-get update -qq && apt-get install curl gpg -y
|
|
|
|
RUN mkdir -p /usr/share/zerotier && \
|
|
|
|
curl -o /usr/share/zerotier/tmp.asc "https://download.zerotier.com/contact%40zerotier.com.gpg" && \
|
|
|
|
gpg --no-default-keyring --keyring /usr/share/zerotier/zerotier.gpg --import /usr/share/zerotier/tmp.asc && \
|
|
|
|
rm -f /usr/share/zerotier/tmp.asc && \
|
|
|
|
echo "deb [signed-by=/usr/share/zerotier/zerotier.gpg] http://download.zerotier.com/debian/bullseye bullseye main" > /etc/apt/sources.list.d/zerotier.list
|
2021-02-24 11:43:45 +00:00
|
|
|
|
2022-09-13 19:23:43 +00:00
|
|
|
RUN apt-get update -qq && apt-get install zerotier-one=${VERSION} curl iproute2 net-tools iputils-ping openssl libssl1.1 -y
|
2021-04-13 20:18:21 +00:00
|
|
|
RUN rm -rf /var/lib/zerotier-one
|
2021-02-24 11:43:45 +00:00
|
|
|
|
|
|
|
COPY entrypoint.sh.release /entrypoint.sh
|
|
|
|
RUN chmod 755 /entrypoint.sh
|
|
|
|
|
2022-03-24 01:17:21 +00:00
|
|
|
HEALTHCHECK --interval=1s CMD bash /healthcheck.sh
|
2022-03-24 01:08:46 +00:00
|
|
|
|
2021-04-13 20:18:21 +00:00
|
|
|
CMD []
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|