fix build
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
FROM rust:latest
|
||||
# Install GNU tar and ensure it's used instead of BusyBox tar
|
||||
|
||||
# Install system dependencies and tools
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
nodejs \
|
||||
@@ -7,6 +8,7 @@ RUN apt-get update && \
|
||||
tar \
|
||||
gzip \
|
||||
curl \
|
||||
mingw-w64 \
|
||||
&& rm -rf /var/lib/apt/lists/* && \
|
||||
# Check if /bin/tar is BusyBox and replace it with GNU tar
|
||||
if /bin/tar --version 2>&1 | grep -q "BusyBox"; then \
|
||||
@@ -21,4 +23,8 @@ RUN SCCACHE_VERSION=0.7.4 && \
|
||||
curl -L "$SCCACHE_URL" | tar xz && \
|
||||
chmod +x sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache && \
|
||||
mv sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache /usr/local/bin/ && \
|
||||
rm -rf sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl
|
||||
rm -rf sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl
|
||||
|
||||
# Install cargo-zigbuild for cross-compilation (macOS targets)
|
||||
RUN cargo install cargo-zigbuild && \
|
||||
rm -rf /usr/local/cargo/registry
|
||||
Reference in New Issue
Block a user