Update Dockerfile

This commit is contained in:
涵曦 2024-06-23 19:05:13 +08:00 committed by GitHub
parent 2eab8d8113
commit 8080dd9822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,15 +2,13 @@ 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
FROM python:3.10-slim
RUN apt-get update \
&& apt-get install -y wget xz-utils \
&& apt-get clean
WORKDIR /app
COPY install_dependencies.sh .
RUN bash install_dependencies.sh
FROM python:3.10-slim
WORKDIR /app
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