refactor(hermes): fix hermes Docker workdir

This commit is contained in:
Reisen 2024-04-15 14:20:07 +01:00
parent 45065e2851
commit 933e61dcb8
1 changed files with 3 additions and 3 deletions

View File

@ -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/