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
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:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -5,8 +5,10 @@
|
||||
"docstrings",
|
||||
"dotenv",
|
||||
"fastapi",
|
||||
"ffprobe",
|
||||
"httpx",
|
||||
"isort",
|
||||
"jrottenberg",
|
||||
"pycodestyle",
|
||||
"pydocstyle",
|
||||
"pyproject",
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user