parent
c1ed67af22
commit
8cbb51d781
2 changed files with 10 additions and 39 deletions
47
Dockerfile
47
Dockerfile
|
@ -1,33 +1,14 @@
|
|||
FROM debian:bullseye-slim@sha256:7acda01e55b086181a6fa596941503648e423091ca563258e2c1657d140355b1 AS snapcast_build
|
||||
FROM curlimages/curl:8.00.1@sha256:9e886c104cae1072f7874c9c214f77c6758f2e8a477234e32eda5fcbfa41f225 as snapcast
|
||||
|
||||
# renovate: datasource=github-tags depName=badaix/snapcast versioning=semver
|
||||
ENV SNAPCAST_VERSION v0.26.0
|
||||
ENV SNAPCAST_VERSION v0.27.0
|
||||
|
||||
RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
git \
|
||||
build-essential \
|
||||
libasound2-dev \
|
||||
libpulse-dev \
|
||||
libvorbisidec-dev \
|
||||
libvorbis-dev \
|
||||
libopus-dev \
|
||||
libflac-dev \
|
||||
libsoxr-dev \
|
||||
alsa-utils \
|
||||
libavahi-client-dev \
|
||||
avahi-daemon \
|
||||
libexpat1-dev \
|
||||
libboost-dev \
|
||||
; \
|
||||
git clone --branch ${SNAPCAST_VERSION} https://github.com/badaix/snapcast.git /snapcast; \
|
||||
cd /snapcast/server; \
|
||||
make; \
|
||||
make install;
|
||||
\
|
||||
curl -Lo /home/curl_user/snapserver.deb \
|
||||
https://github.com/badaix/snapcast/releases/download/${SNAPCAST_VERSION}/snapserver_${SNAPCAST_VERSION#v}-1_amd64.deb
|
||||
|
||||
FROM rust:1.68.0-bullseye@sha256:daed493bfa86872311b82492a2084e0b029b52dc009f077c4108306f2eaf8c7c as librespot_build
|
||||
FROM rust:1.68.0-bullseye@sha256:daed493bfa86872311b82492a2084e0b029b52dc009f077c4108306f2eaf8c7c as librespot
|
||||
|
||||
# renovate: datasource=github-tags depName=librespot-org/librespot versioning=semver
|
||||
ENV LIBRESPOT_VERSION v0.4.2
|
||||
|
@ -44,28 +25,18 @@ RUN set -ex; \
|
|||
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
COPY --from=snapcast_build /usr/bin/snapserver /usr/local/bin/snapserver
|
||||
COPY --from=librespot_build /librespot/target/release/librespot /usr/local/bin/librespot
|
||||
COPY --from=snapcast /home/curl_user/snapserver.deb /snapserver.deb
|
||||
COPY --from=librespot /librespot/target/release/librespot /usr/local/bin/librespot
|
||||
|
||||
RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
supervisor \
|
||||
libasound2 \
|
||||
libavahi-client3 \
|
||||
libavahi-common3 \
|
||||
libexpat1 \
|
||||
libflac8 \
|
||||
libogg0 \
|
||||
libopus0 \
|
||||
libsoxr0 \
|
||||
libvorbis0a \
|
||||
libvorbisenc2 \
|
||||
/snapserver.deb \
|
||||
; \
|
||||
mkdir -p \
|
||||
/var/log/supervisord \
|
||||
/var/run/supervisord \
|
||||
/var/www/flox \
|
||||
; \
|
||||
apt-get clean; \
|
||||
rm -rf /var/lib/apt/lists/*;
|
||||
|
|
|
@ -12,7 +12,7 @@ stdout_logfile=/dev/stdout
|
|||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
command=/usr/local/bin/snapserver -c /config/snapserver.conf
|
||||
command=/usr/bin/snapserver -c /config/snapserver.conf
|
||||
|
||||
[program:librespot]
|
||||
stdout_logfile=/dev/stdout
|
||||
|
|
Reference in a new issue