update Dockerfile for zigdom

This commit is contained in:
Pierre Tachoire
2025-12-24 10:04:10 +01:00
parent a9e6051867
commit 8d992d74c0

View File

@@ -7,12 +7,12 @@ ARG ZIG_V8=v0.1.37
ARG TARGETPLATFORM ARG TARGETPLATFORM
RUN apt-get update -yq && \ RUN apt-get update -yq && \
apt-get install -yq xz-utils \ apt-get install -yq xz-utils ca-certificates \
python3 ca-certificates git \ clang make curl git
pkg-config libglib2.0-dev \
gperf libexpat1-dev \ # Get Rust
cmake clang \ RUN curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
curl git ENV PATH="/root/.cargo/bin:${PATH}"
# install minisig # install minisig
RUN curl --fail -L -O https://github.com/jedisct1/minisign/releases/download/${MINISIG}/minisign-${MINISIG}-linux.tar.gz && \ RUN curl --fail -L -O https://github.com/jedisct1/minisign/releases/download/${MINISIG}/minisign-${MINISIG}-linux.tar.gz && \
@@ -49,7 +49,7 @@ RUN case $TARGETPLATFORM in \
mv libc_v8.a v8/libc_v8.a mv libc_v8.a v8/libc_v8.a
# build release # build release
RUN zig build -Doptimize=ReleaseSafe -Dprebuilt_v8_path=v8/libc_v8.a -Dgit_commit=$$(git rev-parse --short HEAD) RUN zig build -Doptimize=ReleaseFast -Dprebuilt_v8_path=v8/libc_v8.a -Dgit_commit=$(git rev-parse --short HEAD)
FROM debian:stable-slim FROM debian:stable-slim