2022-01-29 12:16:55 +01:00
|
|
|
ARG FROM_IMAGE=zyclonite/zerotier
|
|
|
|
ARG FROM_VERSION=latest
|
2022-01-27 20:02:16 +01:00
|
|
|
|
2022-01-29 12:16:55 +01:00
|
|
|
FROM ${FROM_IMAGE}:${FROM_VERSION}
|
|
|
|
|
2022-06-12 20:32:25 +02:00
|
|
|
LABEL org.opencontainers.image.title="zerotier" \
|
2022-07-18 08:03:36 +02:00
|
|
|
org.opencontainers.image.version="router-${ZT_VERSION}" \
|
|
|
|
org.opencontainers.image.description="ZeroTier One router as Docker Image" \
|
2022-06-12 20:32:25 +02:00
|
|
|
org.opencontainers.image.licenses="MIT" \
|
|
|
|
org.opencontainers.image.source="https://github.com/zyclonite/zerotier-docker"
|
2022-01-27 20:02:16 +01:00
|
|
|
|
2022-01-28 21:43:52 +01:00
|
|
|
ENV LOG_PATH=/var/log/supervisor
|
2022-01-27 20:02:16 +01:00
|
|
|
|
2022-07-18 08:03:36 +02:00
|
|
|
COPY scripts/entrypoint-router.sh /usr/sbin/
|
2022-01-27 20:02:16 +01:00
|
|
|
|
2023-11-05 20:59:36 +01:00
|
|
|
RUN apk add --no-cache --purge --clean-protected iptables iptables-legacy tzdata \
|
2022-06-12 20:32:25 +02:00
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
2022-01-27 20:02:16 +01:00
|
|
|
EXPOSE 9993/udp
|
|
|
|
|
2022-07-18 08:03:36 +02:00
|
|
|
ENTRYPOINT ["entrypoint-router.sh"]
|
2022-01-27 20:02:16 +01:00
|
|
|
|
|
|
|
CMD ["-U"]
|