Files
zerotierbridge/Dockerfile

24 lines
871 B
Docker
Raw Normal View History

FROM debian:12.6 as stage
2023-09-22 20:50:14 +00:00
ARG PACKAGE_BASEURL=https://download.zerotier.com/debian/bookworm/pool/main/z/zerotier-one
2021-08-12 16:12:07 +01:00
ARG ARCH=amd64
2023-09-22 12:17:02 +00:00
ARG VERSION=1.12.2
RUN apt-get update -qq && apt-get install -qq --no-install-recommends -y \
ca-certificates=20230311+deb12u1 \
curl=7.88.1-10+deb12u14
2021-08-12 16:12:07 +01:00
RUN curl -sSL -o zerotier-one.deb "${PACKAGE_BASEURL}/zerotier-one_${VERSION}_${ARCH}.deb"
FROM debian:12.6
2023-09-22 12:18:33 +00:00
RUN mkdir /app
WORKDIR /app
2021-08-12 16:12:07 +01:00
COPY --from=stage zerotier-one.deb .
RUN apt-get update -qq && apt-get install -qq --no-install-recommends -y \
procps=2:4.0.2-3 \
iptables=1.8.9-2 \
openssl=3.0.17-1~deb12u3 \
2021-08-12 16:12:07 +01:00
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN dpkg -i zerotier-one.deb && rm -f zerotier-one.deb
RUN echo "${VERSION}" >/etc/zerotier-version
2023-09-22 12:18:33 +00:00
COPY entrypoint.sh entrypoint.sh
RUN chmod 755 entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]