Skip to content

Commit

Permalink
Changing base to alpine
Browse files Browse the repository at this point in the history
- Allows inclusion of librespot, so you can now natively stream with Spotify Connect
  • Loading branch information
jaedb committed Aug 11, 2023
1 parent d87bc74 commit 2616331
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
FROM python:3.9-slim-bullseye
FROM python:3.9-alpine

RUN apt-get update && apt-get install wget pkg-config build-essential python3-gi python3-gi-cairo gir1.2-gtk-3.0 libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev libpython3-dev libdbus-1-dev libgirepository1.0-dev -y
RUN pip3 install python-mpd2 PyGObject dbus-python musicbrainzngs websocket-client
ARG LIBRESPOT_VERSION=0.4.2-r4
ARG SNAPCAST_VERSION=0.27.0-r3

ARG SNAPCASTVERSION=0.27.0
ARG SNAPCAST_FILE="0.27.0-1"
# Add testing libraries: source of the librespot binary
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories

RUN wget 'https://github.com/badaix/snapcast/releases/download/v'$SNAPCASTVERSION'/snapserver_'$SNAPCAST_FILE'_amd64.deb'
RUN dpkg -i --force-all 'snapserver_'$SNAPCAST_FILE'_amd64.deb'
RUN apt-get -f install -y
RUN mkdir -p /root/.config/snapcast/
RUN apk add --no-cache \
bash \
librespot=${LIBRESPOT_VERSION} \
snapcast=${SNAPCAST_VERSION} \
wget \
sed \
# Python dependencies
python3 \
py3-pip \
pkgconfig \
py3-gobject3

# Install python dependencies for control scripts
RUN python3 -m pip install \
python-mpd2 \
musicbrainzngs \
websocket-client

EXPOSE 1704
EXPOSE 1780
Expand Down

0 comments on commit 2616331

Please sign in to comment.