mirror of
https://github.com/VHDL-LS/rust_hdl.git
synced 2025-12-23 06:01:10 +00:00
Update docker build to use built-in libraries
This commit is contained in:
parent
ada40256a3
commit
bb25be8a98
2 changed files with 4 additions and 4 deletions
|
|
@ -3,4 +3,3 @@
|
|||
Dockerfile
|
||||
example_project
|
||||
target
|
||||
vhdl_libraries
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@ FROM clux/muslrust:$RUST_VERSION as builder
|
|||
WORKDIR /volume
|
||||
COPY . /volume/
|
||||
ARG CRATE
|
||||
RUN cargo build --package $CRATE --release
|
||||
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
|
||||
ENTRYPOINT ["/app"]
|
||||
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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue