Skip to content

Commit 135f551

Browse files
authored
cargo fetch -> cargo build for dependencies (#13)
1 parent b7aacc0 commit 135f551

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
FROM --platform=$BUILDPLATFORM rust AS base
21
WORKDIR /app
32
RUN apt-get update && apt-get upgrade -y
43
RUN rustup component add clippy
@@ -44,10 +43,7 @@ elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
4443
export CC_armv7_unknown_Linux_gnueabihf=arm-linux-gnueabihf-gcc ; \
4544
export CXX_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++ ; \
4645
fi \
47-
&& cargo fetch --target $TARGET
48-
#&& cargo build --release --target $TARGET
49-
#Note: for some reason we can't download and 'pre-build' just the dependencies here... but this method worked before working with a multi-arch dockerfile, so here we just fetch.
50-
#Note: if we remain with 'fetch' we can remove all the above exports from this section, else we can move the 'exports' into external script due to repetition?
46+
&& cargo build --release --target $TARGET
5147

5248

5349

0 commit comments

Comments
 (0)