rm build target specifier
This commit is contained in:
parent
de44838f3a
commit
578bb48283
1 changed files with 3 additions and 3 deletions
|
@ -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 .
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue