summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMichael Adams <unquietwiki@gmail.com>2019-07-18 17:48:41 -0700
committerGitHub <noreply@github.com>2019-07-18 17:48:41 -0700
commitdaa88390057f2f84d4304a14d17c383f41708795 (patch)
treed73388c44bc30d387aca8d6197f09824bd36ace7 /ext
parentac0082a67e2eec80fb674e8d37f81d80f75ad7b3 (diff)
downloadinfinitytier-daa88390057f2f84d4304a14d17c383f41708795.tar.gz
infinitytier-daa88390057f2f84d4304a14d17c383f41708795.zip
Update Dockerfile
Update Dockerfile to use Debian 10 + pull the main.sh directly from Github; works for Portainer use.
Diffstat (limited to 'ext')
-rw-r--r--ext/installfiles/linux/zerotier-containerized/Dockerfile24
1 files changed, 13 insertions, 11 deletions
diff --git a/ext/installfiles/linux/zerotier-containerized/Dockerfile b/ext/installfiles/linux/zerotier-containerized/Dockerfile
index e0ba5ca6..fd18eebb 100644
--- a/ext/installfiles/linux/zerotier-containerized/Dockerfile
+++ b/ext/installfiles/linux/zerotier-containerized/Dockerfile
@@ -1,30 +1,32 @@
-FROM debian:stretch as builder
+## NOTE: to retain configuration; mount a Docker volume, or use a bind-mount, on /var/lib/zerotier-one
+
+FROM debian:buster-slim as builder
## Supports x86_64, x86, arm, and arm64
RUN apt-get update && apt-get install -y curl gnupg
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 0x1657198823e52a61 && \
- echo "deb http://download.zerotier.com/debian/stretch stretch main" > /etc/apt/sources.list.d/zerotier.list
+ echo "deb http://download.zerotier.com/debian/buster buster main" > /etc/apt/sources.list.d/zerotier.list
RUN apt-get update && apt-get install -y zerotier-one=1.2.12
+RUN curl https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/ext/installfiles/linux/zerotier-containerized/main.sh > /var/lib/zerotier-one/main.sh
FROM alpine:latest
-MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
-
LABEL version="1.2.12"
LABEL description="Containerized ZeroTier One for use on CoreOS or other Docker-only Linux hosts."
# Uncomment to build in container
-#RUN apk add --update alpine-sdk linux-headers
-
+# RUN apk add --update alpine-sdk linux-headers
RUN apk add --update libgcc libstdc++
-RUN mkdir -p /var/lib/zerotier-one
+# ZeroTier relies on UDP port 9993
+EXPOSE 9993/udp
-COPY --from=builder /var/lib/zerotier-one/zerotier-cli /usr/sbin/zerotier-cli
-COPY --from=builder /var/lib/zerotier-one/zerotier-idtool /usr/sbin/zerotier-idtool
+RUN mkdir -p /var/lib/zerotier-one
+COPY --from=builder /usr/sbin/zerotier-cli /usr/sbin/zerotier-cli
+COPY --from=builder /usr/sbin/zerotier-idtool /usr/sbin/zerotier-idtool
COPY --from=builder /usr/sbin/zerotier-one /usr/sbin/zerotier-one
+COPY --from=builder /var/lib/zerotier-one/main.sh /main.sh
-ADD main.sh /
RUN chmod 0755 /main.sh
ENTRYPOINT ["/main.sh"]
-CMD ["zerotier-one"] \ No newline at end of file
+CMD ["zerotier-one"]