Move from Alpine to Debian Bookworm
All checks were successful
Test code; build Docker image; push to Docker Hub, GitHub Container Registry and Gitea. / test (push) Successful in 1m54s

This commit is contained in:
2025-04-19 02:16:12 +02:00
parent 3564af2a21
commit b8b9faa8f5
2 changed files with 8 additions and 2 deletions

View File

@ -5,8 +5,10 @@
"docstrings",
"dotenv",
"fastapi",
"ffprobe",
"httpx",
"isort",
"jrottenberg",
"pycodestyle",
"pydocstyle",
"pyproject",

View File

@ -1,7 +1,11 @@
# syntax=docker/dockerfile:1
# check=error=true;experimental=all
FROM --platform=$BUILDPLATFORM ghcr.io/jrottenberg/ffmpeg:7.1-scratch
FROM --platform=$BUILDPLATFORM ghcr.io/jrottenberg/ffmpeg:7.1-scratch AS ffmpeg
FROM --platform=$BUILDPLATFORM python:3.13-slim-bookworm AS base
COPY --from=ffmpeg /bin/ffmpeg /bin/ffprobe /usr/local/bin/
COPY --from=ffmpeg /lib /lib
COPY --from=ffmpeg /share /share
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
ENV PYTHONUNBUFFERED=1
@ -10,7 +14,7 @@ ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy
ENV UV_NO_CACHE=1
RUN apk add --no-cache shadow python3 && useradd --create-home botuser && mkdir /Uploads && chown botuser:botuser /Uploads
RUN useradd --create-home botuser && mkdir /Uploads && chown botuser:botuser /Uploads
USER botuser
WORKDIR /app