Update Dockerfile
This commit is contained in:
parent
2eab8d8113
commit
8080dd9822
10
Dockerfile
10
Dockerfile
@ -2,15 +2,13 @@ FROM python:3.10 AS builder
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN python3 -m venv .venv && .venv/bin/pip install --no-cache-dir -r 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 .
|
COPY install_dependencies.sh .
|
||||||
RUN bash 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/.venv /app/.venv
|
||||||
|
COPY --from=builder /app/ffmpeg /app/ffmpeg
|
||||||
COPY xiaomusic/ ./xiaomusic/
|
COPY xiaomusic/ ./xiaomusic/
|
||||||
COPY xiaomusic.py .
|
COPY xiaomusic.py .
|
||||||
ENV XDG_CONFIG_HOME=/config
|
ENV XDG_CONFIG_HOME=/config
|
||||||
|
Loading…
Reference in New Issue
Block a user