add containerized release build

This commit is contained in:
🪞👃🪞 2025-04-19 01:20:41 +03:00
parent 88f22c96c6
commit c439528cfc
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1 @@
*

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM docker.io/library/alpine:edge
RUN apk add --no-cache \
bash tree rustup git just cloc build-base clang20-dev \
pipewire-jack-dev lilv-dev serd-dev
RUN adduser -Du1000 build
USER 1000
RUN rustup-init -y
RUN source "$HOME/.cargo/env" \
&& rustup install nightly \
&& rustup default nightly \
&& cargo version -vv

4
release.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -exo pipefail
docker build --cache-from=internal -t tek .
docker run -itu0 -v .:/build -vtek-build-target:/build/target -w/build tek