File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ pull_request :
8+ branches :
9+ - main
710
811jobs :
912 docker :
3235 uses : docker/build-push-action@v2
3336 with :
3437 context : .
35- platforms : linux/amd64,linux/ arm64,linux/arm
36- push : true
38+ platforms : linux/arm64,linux/arm/v6
39+ push : ${{ github.ref == 'refs/heads/main' }}
3740 tags : texthtml/midi-synthesizer-autoconnect:latest
3841 cache-from : type=gha
3942 cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 1- FROM rust:1.54-bullseye AS builder
1+ FROM alpine AS builder
22
3- WORKDIR /app
3+ RUN apk add cargo --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
4+
5+ RUN apk add alsa-lib-dev
46
5- RUN apt-get update && apt-get install -y libasound2-dev
7+ WORKDIR /app
68
79ADD .cargo /app/.cargo/
810ADD Cargo.toml Cargo.lock .cargo /app/
@@ -16,11 +18,9 @@ ADD src /app/src/
1618RUN touch src/main.rs && \
1719 cargo build --release --offline
1820
19- FROM debian:bullseye
21+ FROM alpine
2022
21- RUN apt-get update && \
22- apt-get install -y libasound2 && \
23- rm -rf /var/lib/apt/lists/*
23+ RUN apk add --no-cache libgcc alsa-lib
2424
2525COPY --from=builder /app/target/release/midi-synthesizer-autoconnect /usr/bin/
2626
You can’t perform that action at this time.
0 commit comments