chore(docker): ensure resilient multi-arch detection and explicit ziglang dependency

This commit is contained in:
SCOPEDD committed 2026-09-29 03:59:17 -04:00
1 parent b4cef85b1f
commit a9ff92e1d1
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -18,11 +18,11 @@ ARG TARGETARCH
# zig (via the cargo-zigbuild wheel) is the cross C toolchain for musl targets. # zig (via the cargo-zigbuild wheel) is the cross C toolchain for musl targets.
RUN apt-get update && apt-get install -y --no-install-recommends python3-pip \ RUN apt-get update && apt-get install -y --no-install-recommends python3-pip \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache-dir --break-system-packages cargo-zigbuild && pip install --no-cache-dir --break-system-packages cargo-zigbuild ziglang
RUN case "$TARGETARCH" in \ RUN case "${TARGETARCH:-$(uname -m)}" in \
amd64) echo x86_64-unknown-linux-musl ;; \ amd64|x86_64) echo x86_64-unknown-linux-musl ;; \
arm64) echo aarch64-unknown-linux-musl ;; \ arm64|aarch64) echo aarch64-unknown-linux-musl ;; \
*) echo "unsupported arch $TARGETARCH" >&2; exit 1 ;; \ *) echo "unsupported arch ${TARGETARCH:-$(uname -m)}" >&2; exit 1 ;; \
esac > /rust-target \ esac > /rust-target \
&& rustup target add "$(cat /rust-target)" && rustup target add "$(cat /rust-target)"
WORKDIR /src WORKDIR /src
+1 -1
View File
@@ -1,7 +1,7 @@
# SCOPENET admin panel # SCOPENET admin panel
# #
# cp .env.example .env # set ADMIN_PASSWORD at least # cp .env.example .env # set ADMIN_PASSWORD at least
# docker compose up -d # docker compose up -d --build
# #
# Then open http://localhost:8080 (or your domain behind a reverse proxy). # Then open http://localhost:8080 (or your domain behind a reverse proxy).
services: services: