fix: run Electron artifact builds in the bounded worker [CI SKIP]

This commit is contained in:
2026-11-02 17:39:58 +09:00
parent ca4a819506
commit 6007e99985
9 changed files with 163 additions and 100 deletions
+14
View File
@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1
FROM node:22-bookworm-slim AS build
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl git python3 make g++ \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY source/ ./
COPY runner.cjs /build-runner.cjs
ARG BUILD_REQUEST_ID
RUN --mount=type=secret,id=build-config,required=true \
test -n "$BUILD_REQUEST_ID" && timeout --signal=TERM --kill-after=10s 1800 node /build-runner.cjs
FROM scratch AS artifact
COPY --from=build /build-output/ /