rm build target specifier

This commit is contained in:
Peter Zam 2024-06-24 13:51:50 +00:00
parent de44838f3a
commit 578bb48283
No known key found for this signature in database
GPG key ID: B1D74DE2B3E3424F

View file

@ -8,12 +8,12 @@ WORKDIR /app
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/app/target/ \
cargo build --release --target=$(rustc -vV | grep host | cut -d ' ' -f2) && \
mv target/$(rustc -vV | grep host | cut -d ' ' -f2)/release/piped-proxy .
cargo build --release && \
mv target/release/piped-proxy .
FROM scratch
WORKDIR /app/
WORKDIR /app
COPY --from=BUILD /app/piped-proxy .