2021-02-24 11:43:45 +00:00
|
|
|
# vim: ft=dockerfile
|
|
|
|
|
|
|
|
FROM debian:buster as stage
|
|
|
|
|
|
|
|
ARG PACKAGE_BASEURL=https://download.zerotier.com/debian/buster/pool/main/z/zerotier-one/
|
|
|
|
ARG ARCH=amd64
|
|
|
|
ARG VERSION
|
|
|
|
|
|
|
|
RUN apt-get update -qq && apt-get install curl -y
|
|
|
|
RUN curl -sSL -o zerotier-one.deb "${PACKAGE_BASEURL}/zerotier-one_${VERSION}_${ARCH}.deb"
|
|
|
|
|
|
|
|
FROM debian:buster
|
|
|
|
|
|
|
|
COPY --from=stage zerotier-one.deb .
|
|
|
|
|
|
|
|
RUN dpkg -i zerotier-one.deb && rm -f zerotier-one.deb
|
|
|
|
RUN echo "${VERSION}" >/etc/zerotier-version
|
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
|
|
|
|
|
2021-04-13 20:18:21 +00:00
|
|
|
CMD []
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|