Files
mopidy-pi/Dockerfile
T
2026-10-27 06:40:15 +01:00

45 lines
1.2 KiB
Docker

#ARG BUILD_FROM=docker.io/arm32v7/debian:trixie-slim
ARG BUILD_FROM=debian:trixie-slim
ENV DEBIAN_FRONTEND=noninteractive
FROM $BUILD_FROM
RUN apt-get update \
&& apt-get install -y wget \
gstreamer1.0-alsa \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-plugins-bad \
python3-gst-1.0 \
python3-lxml \
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 python3 -m pip install -r requirements.txt \
&& rm -rf ~/.cache/pip
RUN update-ca-certificates --fresh
#RUN mkdir /root/music
#VOLUME ["/root/.cache/mopidy", "/root/.local/share/mopidy", "/root/music"]
ENV TZ=Europe/Vienna
EXPOSE 6600 6680
ENTRYPOINT ["mopidy"]