mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Add alpine based Dockerfile for Devcontainer (#1332)
This commit is contained in:
parent
b85bab5095
commit
fdf62d199d
3 changed files with 34 additions and 2 deletions
32
.devcontainer/Dockerfile.alpine
Normal file
32
.devcontainer/Dockerfile.alpine
Normal file
|
@ -0,0 +1,32 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG alpine_version=alpine3.18
|
||||
ARG rust_version=1.74.0
|
||||
FROM rust:${rust_version}-${alpine_version}
|
||||
|
||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
||||
ENV RUST_BACKTRACE=1
|
||||
ENV RUSTFLAGS="-D warnings -A renamed-and-removed-lints -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
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Librespot Devcontainer",
|
||||
"dockerFile": "Dockerfile",
|
||||
"dockerFile": "Dockerfile.alpine",
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
//"postCreateCommand": "",
|
||||
"customizations": {
|
||||
|
|
2
test.sh
2
test.sh
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
|
|
Loading…
Reference in a new issue