fix client: download fallback to github release client

+ add fallback release version data to version.txt
+ move classproperty class to utils
+ update Dockerfile to install from source using pip install
+ move version info to Metadata class in settings.py
This commit is contained in:
wanji
2025-12-07 23:19:34 +03:00
parent d2b2ba6e02
commit 506c45c4fa
10 changed files with 86 additions and 61 deletions
+12 -11
View File
@@ -1,21 +1,22 @@
FROM python:3.11-slim
WORKDIR /app/swingmusic
# Copy the files in the current dir into the container
# copy wheelhouse and client
COPY wheels wheels
WORKDIR /app
LABEL "author"="swing music"
EXPOSE 1970/tcp
VOLUME /music
VOLUME /config
RUN apt-get update && apt-get install -y gcc git libev-dev python3-dev ffmpeg libavcodec-extra && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN pip install --no-cache-dir --find-links=wheels/ swingmusic
Run rm -rf /app/swingmusic/wheels
RUN apt-get install -y gcc libev-dev
RUN apt-get install -y ffmpeg libavcodec-extra
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy repo root files needed for installation
COPY pyproject.toml requirements.txt version.txt ./
COPY src/ ./src/
# Install the package and its dependencies
RUN pip install --no-cache-dir .
ENTRYPOINT ["python", "-m", "swingmusic", "--host", "0.0.0.0", "--config", "/config"]