From 5032747f1ee712b8a8a984bf2ab5a56b0be477e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Wed, 30 Oct 2024 08:51:59 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E4=BF=AE=E6=94=B9=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed3e45f..40bedb8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 AS builder +FROM hanxi/xiaomusic:base AS builder ENV DEBIAN_FRONTEND=noninteractive RUN pip install -U pdm ENV PDM_CHECK_UPDATE=false @@ -8,8 +8,6 @@ COPY xiaomusic/ ./xiaomusic/ COPY plugins/ ./plugins/ COPY xiaomusic.py . RUN pdm install --prod --no-editable -COPY install_dependencies.sh . -RUN bash install_dependencies.sh FROM python:3.10-slim @@ -20,8 +18,8 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* WORKDIR /app -COPY --from=builder /app/.venv /app/.venv COPY --from=builder /app/ffmpeg /app/ffmpeg +COPY --from=builder /app/.venv /app/.venv COPY xiaomusic/ ./xiaomusic/ COPY plugins/ ./plugins/ COPY xiaomusic.py .