Files
swingmusic-extended/Dockerfile
T
wanji 506c45c4fa 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
2025-12-07 23:19:34 +03:00

23 lines
549 B
Docker

FROM python:3.11-slim
WORKDIR /app
LABEL "author"="swing music"
EXPOSE 1970/tcp
VOLUME /music
VOLUME /config
RUN apt-get update
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"]