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