Update Dockerfile to install Rust dependencies
This commit is contained in:
1 parent
28bc3a175d
commit
dd394d7a57
1 file changed
+3
-2
+3
-2
@@ -4,8 +4,9 @@ ARG VERSION
|
|||||||
FROM ghcr.io/openwrt/sdk:${SAFE_TARGET}-${VERSION}
|
FROM ghcr.io/openwrt/sdk:${SAFE_TARGET}-${VERSION}
|
||||||
|
|
||||||
RUN ./scripts/feeds update packages && \
|
RUN ./scripts/feeds update packages && \
|
||||||
|
./scripts/feeds install rust && \
|
||||||
make defconfig && \
|
make defconfig && \
|
||||||
{ make package/feeds/packages/rust/host-compile -j$(nproc) || \
|
{ make package/rust/host/compile -j$(nproc) || \
|
||||||
make package/feeds/packages/rust/host-compile -j1 V=sc; } && \
|
make package/rust/host/compile -j1 V=sc; } && \
|
||||||
rm -rf build_dir/host/rustc-*/rustc-*/build \
|
rm -rf build_dir/host/rustc-*/rustc-*/build \
|
||||||
dl/rustc-*.tar.*
|
dl/rustc-*.tar.*
|
||||||
Reference in new issue
Block a user