Headless Rust gRPC daemon to drive Bluetooth, HLS/DASH playback, and snapcast/shairport-sync/squeezelite on Raspberry Pi audio rigs.
982 B
24 lines
1FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main
2
3# Native amd64 build inside the cross container — no multiarch foreign arch
4# needed since the base image is already x86_64. Just install the dev libs
5# straight into the host arch.
6RUN apt-get update && \
7 apt-get --assume-yes install --no-install-recommends \
8 curl \
9 unzip \
10 ca-certificates \
11 libasound2-dev \
12 libdbus-1-dev \
13 libsystemd-dev && \
14 rm -rf /var/lib/apt/lists/*
15
16# Modern protoc — the distro package on this base image is too old to
17# recognise proto3 `optional`. See Dockerfile.arm-unknown-linux-gnueabihf
18# for the full context.
19ARG PROTOC_VERSION=25.1
20RUN curl -fsSL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip" -o /tmp/protoc.zip && \
21 unzip -q /tmp/protoc.zip -d /usr/local && \
22 rm /tmp/protoc.zip && \
23 chmod +x /usr/local/bin/protoc && \
24 protoc --version