18 lines
408 B
Docker
18 lines
408 B
Docker
FROM rust:buster AS builder
|
|
|
|
RUN rustup default nightly
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
RUN cargo build --release --bin herd --features herd
|
|
|
|
FROM git.hydrar.de/navos/navos:latest
|
|
|
|
RUN pacman-key --init && pacman-key --populate archlinux && pacman-key --populate navos && pacman -Syu --noconfirm && pacman -Syu --noconfirm openssl-1.1
|
|
|
|
COPY --from=builder /app/target/release/herd /herd
|
|
|
|
WORKDIR /
|
|
|
|
CMD ["/herd"]
|