mirror of
https://github.com/VHDL-LS/rust_hdl.git
synced 2025-12-23 06:01:10 +00:00
11 lines
278 B
Docker
11 lines
278 B
Docker
ARG RUST_VERSION=stable
|
|
FROM clux/muslrust:$RUST_VERSION as builder
|
|
WORKDIR /volume
|
|
COPY . /volume/
|
|
ARG CRATE
|
|
RUN cargo build --package $CRATE --release
|
|
|
|
FROM scratch
|
|
ARG CRATE
|
|
COPY --from=builder /volume/target/x86_64-unknown-linux-musl/release/$CRATE /app
|
|
ENTRYPOINT ["/app"]
|