mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-06 12:24:44 +00:00
Dockerfile.runner, Dockerfile.worker and Dockerfile.egress-proxy built their runtime stage from the bare debian:bookworm-slim tag. Pin it to the multi-architecture index the panel Dockerfile already uses (Dependabot bumps it), and add a sandbox test that fails when any FROM in the repository's Dockerfiles has no sha256 digest. The GHCR compose file pins postgres:16-alpine to the digest docker-compose.yml already uses, and the API-recon skill's checklist and harvest script ask for npm ci --ignore-scripts against the shipped lockfile instead of npm install.
20 lines
912 B
Docker
20 lines
912 B
Docker
# ARTEX sandbox runner service (CONTRACT.md §2).
|
|
# The ONLY component that mounts /var/run/docker.sock.
|
|
FROM --platform=$BUILDPLATFORM golang:1.26.11-bookworm@sha256:ea47ee45f1284d60f9cc09cb2c3bb4f508c256b640bd8bb30342ff13d1adcb52 AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
COPY sandbox/ ./sandbox/
|
|
COPY cmd/artex-runner/ ./cmd/artex-runner/
|
|
ARG ARTEX_VERSION=dev
|
|
ARG TARGETOS=linux
|
|
ARG TARGETARCH
|
|
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath \
|
|
-ldflags="-s -w -X main.version=${ARTEX_VERSION}" \
|
|
-o /out/artex-runner ./cmd/artex-runner
|
|
|
|
FROM debian:bookworm-slim@sha256:e67eeead736ff7bbe258ef088bff683635c561b1fcfefad0806c1df4ab49ce0e
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=build /out/artex-runner /usr/local/bin/artex-runner
|
|
EXPOSE 8789
|
|
ENTRYPOINT ["/usr/local/bin/artex-runner"]
|