Tom Alexander 96d414b9c4
Some checks failed
build Build build has failed
rust-test Build rust-test has failed
format Build format has succeeded
rust-clippy Build rust-clippy has failed
fixup
2024-05-12 01:31:18 -04:00

14 lines
452 B
Docker

FROM rustlang/rust:nightly-alpine3.19 AS builder
RUN apk add --no-cache musl-dev pkgconf pipewire-dev
RUN mkdir /root/ta_waybar_pipewire
WORKDIR /root/ta_waybar_pipewire
COPY . .
# TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static"
RUN CARGO_TARGET_DIR=/target cargo build --profile release-lto
FROM alpine:3.19 AS runner
COPY --from=builder /target/release-lto/ta_waybar_pipewire /usr/bin/