diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-05-13 08:07:30 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2022-05-13 08:07:30 +0000 |
| commit | 4cc5d90debae95114945c6c32f31888beca4b3f8 (patch) | |
| tree | 1c5985ce344965054a72944ed90c322b9e7cc3e9 /snapserver/Dockerfile | |
| download | hassio-addons-main.tar.gz hassio-addons-main.zip | |
initial commitmain
Diffstat (limited to 'snapserver/Dockerfile')
| -rw-r--r-- | snapserver/Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/snapserver/Dockerfile b/snapserver/Dockerfile new file mode 100644 index 0000000..29d93fd --- /dev/null +++ b/snapserver/Dockerfile @@ -0,0 +1,24 @@ +ARG BUILD_FROM +FROM $BUILD_FROM + +# Add env +ENV LANG C.UTF-8 + +# Install snapcast and librespot +RUN apk -U add bash build-base curl cargo portaudio-dev protobuf-dev \ + && cd /root \ + && curl -LO https://github.com/librespot-org/librespot/archive/refs/tags/v0.3.1.zip \ + && unzip v0.3.1.zip \ + && cd librespot-0.3.1 \ + && cargo build --jobs $(grep -c ^processor /proc/cpuinfo) --release --no-default-features \ + && mv target/release/librespot /usr/local/bin \ + && cd / \ + && apk --purge del curl cargo portaudio-dev protobuf-dev \ + && apk add llvm-libunwind snapcast-server \ + && rm -rf /etc/ssl /var/cache/apk/* /lib/apk/db/* /root/v0.1.3.zip /root/librespot-0.3.1 /root/.ca + +# Copy data for add-on +COPY run.sh / +RUN chmod a+x /run.sh + +CMD [ "/run.sh" ] |
