moved cargo configuration file in arch builder image
All checks were successful
CI / Build arch-builder docker images (push) Successful in 9m3s

This commit is contained in:
2024-08-22 11:55:59 +08:00
parent 024fa48ef2
commit 1d3b5fc9ad

View File

@@ -72,7 +72,7 @@ WORKDIR /home/luser
FROM base AS rust FROM base AS rust
RUN mkdir -p /etc/cargo RUN mkdir -p /etc/cargo
COPY config.toml /etc/cargo/ COPY config.toml /.cargo/
RUN pacman -S --noconfirm --needed \ RUN pacman -S --noconfirm --needed \
rustup \ rustup \
sccache \ sccache \
@@ -87,7 +87,6 @@ FROM rust-full AS rust-full-rootless
USER luser USER luser
WORKDIR /home/luser WORKDIR /home/luser
RUN mkdir .cargo RUN mkdir .cargo
RUN ln -s /etc/cargo/config.toml .cargo/config.toml
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu RUN rustup toolchain install stable-x86_64-unknown-linux-gnu
RUN rustup target add \ RUN rustup target add \
x86_64-unknown-linux-musl \ x86_64-unknown-linux-musl \