File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1
2+ ARG alpine_version=alpine3.18
3+ ARG rust_version=1.74.0
4+ FROM rust:${rust_version}-${alpine_version}
5+
6+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
7+ ENV RUST_BACKTRACE=1
8+ ENV RUSTFLAGS="-D warnings -A renamed-and-removed-lints -C target-feature=-crt-static"
9+
10+
11+ RUN apk add --no-cache \
12+ git \
13+ nano\
14+ openssh-server \
15+ # for rust-analyzer vscode plugin
16+ pkgconf \
17+ musl-dev \
18+ # developer dependencies
19+ libunwind-dev \
20+ pulseaudio-dev \
21+ portaudio-dev \
22+ alsa-lib-dev \
23+ sdl2-dev \
24+ gstreamer-dev \
25+ gst-plugins-base-dev \
26+ jack-dev \
27+ avahi-dev && \
28+ rm -rf /lib/apk/db/*
29+
30+ RUN rustup component add rustfmt && \
31+ rustup component add clippy && \
32+ cargo install cargo-hack
Original file line number Diff line number Diff line change 11{
22 "name" : " Librespot Devcontainer" ,
3- "dockerFile" : " Dockerfile" ,
3+ "dockerFile" : " Dockerfile.alpine " ,
44 // Use 'postCreateCommand' to run commands after the container is created.
55 // "postCreateCommand": "",
66 "customizations" : {
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33set -e
44
You can’t perform that action at this time.
0 commit comments