Skip to content

Commit d260a10

Browse files
committed
Add dockerfile for fm-streamer
Signed-off-by: Fredrik Lönnegren <[email protected]>
1 parent 6a31e69 commit d260a10

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile.fm-streamer

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM registry.opensuse.org/opensuse/tumbleweed:latest AS build
2+
3+
RUN mkdir /sysroot && \
4+
zypper --gpg-auto-import-keys --installroot /sysroot refresh && \
5+
zypper --non-interactive --installroot /sysroot install -y libusb-1_0-0 glibc libgcc_s1
6+
7+
FROM rust:1.90 AS builder
8+
WORKDIR /usr/src/fm-streamer
9+
COPY Cargo.toml Cargo.lock fm-streamer .
10+
RUN cargo install --path .
11+
12+
FROM scratch
13+
COPY --from=build /sysroot /
14+
COPY --from=builder /usr/local/cargo/bin/fm-streamer /usr/local/bin/fm-streamer
15+
CMD ["fm-streamer"]

0 commit comments

Comments
 (0)