modernize setup

This commit is contained in:
nine committed 2026-10-27 06:40:15 +01:00
1 parent 2557834bda
commit 8b7c3d2b99
4 files changed
+26 -15

No files matched your search

+15 -5
View File
@@ -1,4 +1,7 @@
ARG BUILD_FROM=docker.io/arm32v7/debian:bookworm-slim
#ARG BUILD_FROM=docker.io/arm32v7/debian:trixie-slim
ARG BUILD_FROM=debian:trixie-slim
ENV DEBIAN_FRONTEND=noninteractive
FROM $BUILD_FROM
@@ -13,22 +16,29 @@ RUN apt-get update \
python3-pip \
python3-setuptools \
python3-wheel \
python3-venv \
libasound2-dev \
libcairo2-dev \
libgirepository-2.0-dev \
&& rm -rf /var/lib/apt/lists/*
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements.txt requirements.txt
RUN pip3 install --break-system-packages -r requirements.txt \
RUN python3 -m pip install -r requirements.txt \
&& rm -rf ~/.cache/pip
RUN update-ca-certificates --fresh
RUN mkdir /root/music
#RUN mkdir /root/music
VOLUME ["/root/.cache/mopidy", "/root/.local/share/mopidy", "/root/music"]
#VOLUME ["/root/.cache/mopidy", "/root/.local/share/mopidy", "/root/music"]
ENV TZ=Europe/Vienna
EXPOSE 6600 6680
ENTRYPOINT ["mopidy"]
ENTRYPOINT ["mopidy"]