feat: supports custom prepare build script (#1490)

This commit is contained in:
纪卓志
2024-11-12 13:45:28 +08:00
committed by GitHub
parent 60e476da87
commit 6a1bf90d42
3 changed files with 4 additions and 5 deletions

View File

@@ -8,10 +8,7 @@ FROM $BASE_IMAGE
LABEL rust_version=$RUST_VERSION oras_version=$ORAS_VERSION
RUN apt-get update \
&& apt-get install -y wget gcc gcc-multilib llvm clang \
&& rustup target add wasm32-wasi \
&& rm -rf /var/lib/apt/lists/*
RUN rustup target add wasm32-wasi
RUN arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \
rust_version=${RUST_VERSION:-1.82}; \