zerotier-docker/Dockerfile

25 lines
698 B
Docker
Raw Normal View History

2021-01-15 09:39:44 +01:00
FROM alpine:3.13 as builder
2017-03-29 11:03:49 +02:00
2021-02-04 09:33:35 +01:00
ARG ZT_COMMIT=7c2066c25888b8aa4f398fcf6f55e747656b0854
2017-03-29 11:03:49 +02:00
2020-01-01 21:06:13 +01:00
RUN apk add --update alpine-sdk linux-headers \
2020-11-21 10:14:22 +01:00
&& git clone --quiet https://github.com/zerotier/ZeroTierOne.git /src \
&& git -C src reset --quiet --hard ${ZT_COMMIT} \
2020-01-01 21:06:13 +01:00
&& cd /src \
&& make -f make-linux.mk
2017-03-29 11:03:49 +02:00
2021-01-15 09:39:44 +01:00
FROM alpine:3.13
2021-02-04 09:33:35 +01:00
LABEL version="1.6.3"
2020-12-01 09:07:31 +01:00
LABEL description="ZeroTier One as Docker Image"
2017-03-29 11:03:49 +02:00
2020-03-31 10:32:54 +02:00
RUN apk add --update --no-cache libc6-compat libstdc++
2017-03-29 11:03:49 +02:00
2020-01-01 21:06:13 +01:00
EXPOSE 9993/udp
COPY --from=builder /src/zerotier-one /usr/sbin/
RUN mkdir -p /var/lib/zerotier-one \
&& ln -s /usr/sbin/zerotier-one /usr/sbin/zerotier-idtool \
&& ln -s /usr/sbin/zerotier-one /usr/sbin/zerotier-cli
2017-03-29 11:03:49 +02:00
2019-10-17 16:11:51 +02:00
ENTRYPOINT ["zerotier-one"]