2024-10-30 01:50:22 +00:00
|
|
|
FROM hanxi/xiaomusic:builder AS builder
|
2024-07-01 11:14:55 +00:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2024-07-24 21:38:36 +00:00
|
|
|
RUN pip install -U pdm
|
|
|
|
ENV PDM_CHECK_UPDATE=false
|
2023-10-15 02:58:53 +00:00
|
|
|
WORKDIR /app
|
2024-07-24 21:38:36 +00:00
|
|
|
COPY pyproject.toml README.md .
|
|
|
|
COPY xiaomusic/ ./xiaomusic/
|
|
|
|
COPY plugins/ ./plugins/
|
|
|
|
COPY xiaomusic.py .
|
|
|
|
RUN pdm install --prod --no-editable
|
2023-10-15 02:58:53 +00:00
|
|
|
|
2024-10-30 01:50:22 +00:00
|
|
|
FROM hanxi/xiaomusic:runtime
|
2024-10-22 22:22:00 +00:00
|
|
|
|
2023-10-15 02:58:53 +00:00
|
|
|
WORKDIR /app
|
2024-10-30 00:51:59 +00:00
|
|
|
COPY --from=builder /app/.venv /app/.venv
|
2023-10-15 02:58:53 +00:00
|
|
|
COPY xiaomusic/ ./xiaomusic/
|
2024-07-05 13:45:28 +00:00
|
|
|
COPY plugins/ ./plugins/
|
2023-10-15 02:58:53 +00:00
|
|
|
COPY xiaomusic.py .
|
|
|
|
ENV XIAOMUSIC_HOSTNAME=192.168.2.5
|
|
|
|
ENV XIAOMUSIC_PORT=8090
|
2024-07-16 16:25:01 +00:00
|
|
|
VOLUME /app/conf
|
|
|
|
VOLUME /app/music
|
2023-10-15 02:58:53 +00:00
|
|
|
EXPOSE 8090
|
2024-10-17 00:18:54 +00:00
|
|
|
ENV TZ=Asia/Shanghai
|
2023-10-15 02:58:53 +00:00
|
|
|
ENV PATH=/app/.venv/bin:$PATH
|
|
|
|
ENTRYPOINT [".venv/bin/python3","xiaomusic.py"]
|