Skip to content

Commit

Permalink
优化 Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi authored Jun 23, 2024
1 parent 4a89b4b commit 088d448
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 088d448

Please sign in to comment.