zerotier-docker/Dockerfile

25 lines
731 B
Docker
Raw Normal View History

2019-10-17 16:11:51 +02:00
FROM debian:buster-slim
2017-03-29 11:03:49 +02:00
2019-10-17 16:11:51 +02:00
# zerotier-one version
ARG ZT_VERSION=1.4.6
2017-03-29 11:03:49 +02:00
2019-10-17 16:11:51 +02:00
LABEL maintainer="Lukas Prettenthaler (zyclonite)"
LABEL version="$ZT_VERSION"
LABEL description="Containerized ZeroTier One for use on CoreOS or other Docker-only Linux hosts."
2017-03-29 11:03:49 +02:00
2019-10-17 16:11:51 +02:00
# Configure environment
ENV ZT_VERSION=${ZT_VERSION}
2017-03-29 11:03:49 +02:00
2019-10-17 16:11:51 +02:00
RUN apt-get update \
&& apt-get install -y gnupg2 \
&& apt-key adv --fetch-keys http://download.zerotier.com/contact%40zerotier.com.gpg \
&& echo "deb http://download.zerotier.com/debian/buster buster main" > /etc/apt/sources.list.d/zerotier.list \
&& apt-get update \
&& apt-get install -y zerotier-one=${ZT_VERSION} \
&& rm -rf /var/lib/apt/lists/*
2017-03-29 11:03:49 +02:00
2019-10-17 16:11:51 +02:00
VOLUME /var/lib/zerotier-one
EXPOSE 9993
2017-03-29 11:03:49 +02:00
2019-10-17 16:11:51 +02:00
ENTRYPOINT ["zerotier-one"]