mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
31e42879e2
Signed-off-by: Christian König <ckoenig@posteo.de>
29 lines
808 B
Docker
29 lines
808 B
Docker
# syntax=docker/dockerfile:1
|
|
ARG debian_version=slim-bookworm
|
|
ARG rust_version=1.70.0
|
|
FROM rust:${rust_version}-${debian_version}
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
git \
|
|
nano\
|
|
openssh-server \
|
|
# for rust-analyzer vscode plugin
|
|
pkg-config \
|
|
# developer dependencies
|
|
libunwind-dev \
|
|
libpulse-dev \
|
|
portaudio19-dev \
|
|
libasound2-dev \
|
|
libsdl2-dev \
|
|
gstreamer1.0-dev \
|
|
libgstreamer-plugins-base1.0-dev \
|
|
libavahi-compat-libdnssd-dev && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN rustup component add rustfmt && \
|
|
rustup component add clippy && \
|
|
cargo install cargo-hack
|