mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 00:56:58 +00:00
chore: update Dockerfile to use Debian 13.1 and update package versions
- Changed base image from Debian 12.6 to Debian 13.1. - Updated package versions for ca-certificates, curl, procps, iptables, and openssl. - Enhanced shell command syntax for improved error handling.
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,10 +1,11 @@
|
|||||||
FROM debian:12.6 AS stage
|
FROM debian:13.1 AS stage
|
||||||
ARG PACKAGE_BASEURL=https://download.zerotier.com/debian/bookworm/pool/main/z/zerotier-one
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
ARG PACKAGE_BASEURL=https://download.zerotier.com/debian/trixie/pool/main/z/zerotier-one
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG VERSION=1.12.2
|
ARG VERSION=1.12.2
|
||||||
RUN apt-get update -qq && apt-get install -qq --no-install-recommends -y \
|
RUN apt-get update -qq && apt-get install -qq --no-install-recommends -y \
|
||||||
ca-certificates=20230311+deb12u1 \
|
ca-certificates=20250419 \
|
||||||
curl=7.88.1-10+deb12u14
|
curl=8.14.1-2
|
||||||
RUN set -e; \
|
RUN set -e; \
|
||||||
DETECTED_ARCH="${TARGETARCH:-}"; \
|
DETECTED_ARCH="${TARGETARCH:-}"; \
|
||||||
if [ -z "$DETECTED_ARCH" ]; then DETECTED_ARCH="$(dpkg --print-architecture)"; fi; \
|
if [ -z "$DETECTED_ARCH" ]; then DETECTED_ARCH="$(dpkg --print-architecture)"; fi; \
|
||||||
@@ -17,15 +18,16 @@ RUN set -e; \
|
|||||||
echo "Downloading ZeroTier: arch=$ARCH_MAPPING version=$VERSION"; \
|
echo "Downloading ZeroTier: arch=$ARCH_MAPPING version=$VERSION"; \
|
||||||
curl -fsSL -o zerotier-one.deb "${PACKAGE_BASEURL}/zerotier-one_${VERSION}_${ARCH_MAPPING}.deb"
|
curl -fsSL -o zerotier-one.deb "${PACKAGE_BASEURL}/zerotier-one_${VERSION}_${ARCH_MAPPING}.deb"
|
||||||
|
|
||||||
FROM debian:12.6
|
FROM debian:13.1
|
||||||
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=stage zerotier-one.deb .
|
COPY --from=stage zerotier-one.deb .
|
||||||
RUN apt-get update -qq && apt-get install -qq --no-install-recommends -y \
|
RUN apt-get update -qq && apt-get install -qq --no-install-recommends -y \
|
||||||
procps=2:4.0.2-3 \
|
procps=2:4.0.4-9 \
|
||||||
iptables=1.8.9-2 \
|
iptables=1.8.11-2 \
|
||||||
openssl=3.0.17-1~deb12u3 \
|
openssl=3.5.1-1 \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
RUN dpkg -i zerotier-one.deb && rm -f zerotier-one.deb
|
RUN dpkg -i zerotier-one.deb && rm -f zerotier-one.deb
|
||||||
|
|||||||
Reference in New Issue
Block a user