fixed docker build cache for arch-builder image

This commit is contained in:
2025-07-18 15:55:28 +08:00
parent 1267957343
commit 14948a13e1
2 changed files with 12 additions and 8 deletions

View File

@@ -114,6 +114,7 @@ RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed g
RUN --mount=type=bind,source=woggioni.net.ca.pem,target=/root.pem trust anchor root.pem
RUN usermod -a luser -G docker
USER luser
WORKDIR /home/luser
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu --profile minimal
RUN rustup component add rustfmt
RUN rustup target add \
@@ -125,7 +126,6 @@ RUN rustup target add \
aarch64-unknown-linux-gnu \
wasm32-unknown-unknown \
wasm32-wasip2
RUN npm install wrangler
RUN npm install -D wrangler
ENV PATH="/home/luser/.local/bin:/home/luser/.cargo/bin:${PATH}"
WORKDIR /home/luser
CMD ["/usr/lib/gitea/act_runner/act_runner", "daemon", "--config", "/var/lib/gitea/act_runner.yaml"]