modernize setup
This commit is contained in:
1 parent
2557834bda
commit
8b7c3d2b99
4 files changed
+26
-15
No files matched your search
+15
-5
@@ -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"]
|
||||
Reference in new issue
Block a user