update Dockerfile to use python:3.13-slim-trixie base image
This commit is contained in:
+2
-8
@@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# 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 SCALABLE_CLI_VERSION=1.0.0
|
||||||
ARG TARGETARCH
|
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 \
|
&& mv sc-v${SCALABLE_CLI_VERSION}-linux-${ARCH}-gnu/sc /usr/local/bin/sc \
|
||||||
&& chmod +x /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 PUID=1000
|
||||||
ARG PGID=1000
|
ARG PGID=1000
|
||||||
|
|
||||||
# 1. System-Pakete (inkl. gosu)
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends gosu \
|
RUN apt-get update && apt-get install -y --no-install-recommends gosu \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 2. User anlegen
|
|
||||||
RUN groupadd -g ${PGID} appgroup \
|
RUN groupadd -g ${PGID} appgroup \
|
||||||
&& useradd -u ${PUID} -g appgroup -m -d /home/appuser appuser
|
&& 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
|
COPY --from=builder /usr/local/bin/sc /usr/local/bin/sc
|
||||||
|
|
||||||
# 4. App-Dateien
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
@@ -46,10 +42,8 @@ COPY scalable_sync.py .
|
|||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
# 5. Env
|
|
||||||
ENV SC_CONFIG_DIR=/tmp/sc-config
|
ENV SC_CONFIG_DIR=/tmp/sc-config
|
||||||
ENV PUID=${PUID}
|
ENV PUID=${PUID}
|
||||||
ENV PGID=${PGID}
|
ENV PGID=${PGID}
|
||||||
|
|
||||||
# 6. Entrypoint (wechselt intern auf appuser)
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user