build: 修改镜像
This commit is contained in:
parent
5032747f1e
commit
b49e250488
11
Dockerfile
11
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM hanxi/xiaomusic:base AS builder
|
FROM python:3.10 AS builder
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN pip install -U pdm
|
RUN pip install -U pdm
|
||||||
ENV PDM_CHECK_UPDATE=false
|
ENV PDM_CHECK_UPDATE=false
|
||||||
@ -9,16 +9,9 @@ COPY plugins/ ./plugins/
|
|||||||
COPY xiaomusic.py .
|
COPY xiaomusic.py .
|
||||||
RUN pdm install --prod --no-editable
|
RUN pdm install --prod --no-editable
|
||||||
|
|
||||||
FROM python:3.10-slim
|
FROM hanxi/xiaomusic:base
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
libtiff6 \
|
|
||||||
libopenjp2-7 \
|
|
||||||
libxcb1 \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/ffmpeg /app/ffmpeg
|
|
||||||
COPY --from=builder /app/.venv /app/.venv
|
COPY --from=builder /app/.venv /app/.venv
|
||||||
COPY xiaomusic/ ./xiaomusic/
|
COPY xiaomusic/ ./xiaomusic/
|
||||||
COPY plugins/ ./plugins/
|
COPY plugins/ ./plugins/
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
FROM python:3.10
|
FROM python:3.10-slim
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY install_dependencies.sh .
|
COPY install_dependencies.sh .
|
||||||
RUN bash install_dependencies.sh
|
RUN bash install_dependencies.sh
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
libtiff6 \
|
||||||
|
libopenjp2-7 \
|
||||||
|
libxcb1 \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user