2024-02-26 13:18:51 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
ARG debian_version=slim-bookworm
|
2024-06-10 18:50:38 +00:00
|
|
|
ARG rust_version=1.73.0
|
2024-02-26 13:18:51 +00:00
|
|
|
FROM rust:${rust_version}-${debian_version}
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
2024-05-11 12:29:25 +00:00
|
|
|
ENV RUST_BACKTRACE=1
|
|
|
|
ENV RUSTFLAGS=-Dwarnings
|
|
|
|
|
2024-02-26 13:18:51 +00:00
|
|
|
|
|
|
|
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
|