mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-07-29 07:03:47 +00:00
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:
+12
-11
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user