mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
2a6d7545ca
* Update sysinfo to 0.33 * Update thiserror to v2.0 * Update Alpine Dockerfile to 1.75 (MSRV) * Update governor to 0.8 * Update quick-xml to 0.37 * Update rodio to 0.20.1 * Update zerocopy to 0.8.13 * Update alpine image to 3.19 --------- Signed-off-by: yubiuser <github@yubiuser.dev>
32 lines
795 B
Docker
32 lines
795 B
Docker
# syntax=docker/dockerfile:1
|
|
ARG alpine_version=alpine3.19
|
|
ARG rust_version=1.75.0
|
|
FROM rust:${rust_version}-${alpine_version}
|
|
|
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
|
ENV RUST_BACKTRACE=1
|
|
ENV RUSTFLAGS="-D warnings -C target-feature=-crt-static"
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
git \
|
|
nano\
|
|
openssh-server \
|
|
# for rust-analyzer vscode plugin
|
|
pkgconf \
|
|
musl-dev \
|
|
# developer dependencies
|
|
libunwind-dev \
|
|
pulseaudio-dev \
|
|
portaudio-dev \
|
|
alsa-lib-dev \
|
|
sdl2-dev \
|
|
gstreamer-dev \
|
|
gst-plugins-base-dev \
|
|
jack-dev \
|
|
avahi-dev && \
|
|
rm -rf /lib/apk/db/*
|
|
|
|
RUN rustup component add rustfmt && \
|
|
rustup component add clippy && \
|
|
cargo install cargo-hack
|