From 088d448e1061f868a2d8c5624414f86c0156ac78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Sun, 23 Jun 2024 17:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Dockerfile?= 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 b747565..1eec8cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,12 @@ FROM python:3.10 AS builder WORKDIR /app COPY requirements.txt . RUN python3 -m venv .venv && .venv/bin/pip install --no-cache-dir -r requirements.txt -COPY install_dependencies.sh . -RUN bash install_dependencies.sh FROM python:3.10-slim - WORKDIR /app +COPY install_dependencies.sh . +RUN bash install_dependencies.sh COPY --from=builder /app/.venv /app/.venv -COPY --from=builder /app/ffmpeg /app/ffmpeg COPY xiaomusic/ ./xiaomusic/ COPY xiaomusic.py . ENV XDG_CONFIG_HOME=/config