mirror of
https://github.com/orhun/systeroid
synced 2024-09-06 16:24:03 +00:00
17 lines
519 B
Docker
17 lines
519 B
Docker
FROM ekidd/rust-musl-builder:latest as builder
|
|
WORKDIR /home/rust/src
|
|
COPY . .
|
|
RUN cargo build --locked --release -p systeroid
|
|
RUN cargo build --locked --release --no-default-features -p systeroid-tui
|
|
RUN mkdir -p build-out/
|
|
RUN ["/bin/bash", "-c", "cp target/x86_64-unknown-linux-musl/release/systeroid{,-tui} build-out/"]
|
|
|
|
FROM scratch
|
|
WORKDIR /app
|
|
COPY --from=builder \
|
|
/home/rust/src/build-out/systeroid \
|
|
/home/rust/src/build-out/systeroid-tui \
|
|
/usr/local/bin/
|
|
USER 1000:1000
|
|
ENTRYPOINT ["systeroid"]
|