refactor(hermes): fix hermes Docker workdir
This commit is contained in:
parent
45065e2851
commit
933e61dcb8
|
@ -12,15 +12,15 @@ RUN rustup default nightly-2024-03-26
|
|||
|
||||
# Build
|
||||
WORKDIR /src
|
||||
COPY apps/hermes hermes
|
||||
COPY apps/hermes apps/hermes
|
||||
COPY pythnet/pythnet_sdk pythnet/pythnet_sdk
|
||||
|
||||
|
||||
WORKDIR /src/hermes
|
||||
WORKDIR /src/apps/hermes
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cargo/registry cargo build --release
|
||||
|
||||
FROM rust:1.77.0
|
||||
|
||||
# Copy artifacts from other images
|
||||
COPY --from=build /src/hermes/target/release/hermes /usr/local/bin/
|
||||
COPY --from=build /src/apps/hermes/target/release/hermes /usr/local/bin/
|
||||
|
|
Loading…
Reference in New Issue