From 7d6b1199539b2b7245116fc296d85b6585cea079 Mon Sep 17 00:00:00 2001 From: Lukas Pierchalla Date: Sun, 20 Sep 2026 11:10:08 +0200 Subject: [PATCH] update Dockerfile to use python:3.13-slim-trixie base image --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76d3b50..f507398 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM python:3.13-slim-bookworm AS builder +FROM python:3.13-slim-trixie AS builder ARG SCALABLE_CLI_VERSION=1.0.0 ARG TARGETARCH @@ -22,23 +22,19 @@ RUN ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "x86_64") \ && mv sc-v${SCALABLE_CLI_VERSION}-linux-${ARCH}-gnu/sc /usr/local/bin/sc \ && chmod +x /usr/local/bin/sc -FROM python:3.13-slim-bookworm +FROM python:3.13-slim-trixie ARG PUID=1000 ARG PGID=1000 -# 1. System-Pakete (inkl. gosu) RUN apt-get update && apt-get install -y --no-install-recommends gosu \ && rm -rf /var/lib/apt/lists/* -# 2. User anlegen RUN groupadd -g ${PGID} appgroup \ && useradd -u ${PUID} -g appgroup -m -d /home/appuser appuser -# 3. Scalable CLI kopieren COPY --from=builder /usr/local/bin/sc /usr/local/bin/sc -# 4. App-Dateien WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt @@ -46,10 +42,8 @@ COPY scalable_sync.py . COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -# 5. Env ENV SC_CONFIG_DIR=/tmp/sc-config ENV PUID=${PUID} ENV PGID=${PGID} -# 6. Entrypoint (wechselt intern auf appuser) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file