All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m2s
23 lines
491 B
Docker
23 lines
491 B
Docker
FROM python:3.13.5-slim-bookworm
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
|
|
# 工作目录
|
|
WORKDIR /app
|
|
|
|
# 复制依赖列表
|
|
COPY pyproject.toml .
|
|
|
|
# 编译器
|
|
RUN apt-get update && apt-get install -y build-essential
|
|
|
|
COPY --from=mwader/static-ffmpeg:latest /ffmpeg /usr/local/bin/ffmpeg
|
|
COPY --from=mwader/static-ffmpeg:latest /ffprobe /usr/local/bin/ffprobe
|
|
RUN ldconfig && ffmpeg -version
|
|
|
|
# 安装依赖
|
|
RUN uv sync
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT [ "uv","run","bot.py" ] |