Files
selfphoneng/apps/probe/binary.Dockerfile
T
iamdoubz 4143f6d064
ci / check (push) Successful in 59s
ci / images (push) Successful in 49s
probe: downloadable executables for machines without Docker
Each release attaches selfphoneng-probe-linux-x64 and -arm64 (Node's single executable
applications: esbuild bundle + postject into the official Node binary, checked against
nodejs.org's SHASUMS256.txt), the bundle as selfphoneng-probe.cjs (Node 22+) and SHA256SUMS.
Built in binary.Dockerfile with BuildKit's local output, so Gitea's runner can build it too.
deploy/probe/selfphoneng-probe.service runs it under systemd, sandboxed.
2026-10-21 12:57:04 -05:00

14 lines
562 B
Docker

# SPDX-License-Identifier: AGPL-3.0-or-later
# Builds the probe's downloadable files (build-binary.mjs) and hands them back, no image:
# docker build -f apps/probe/binary.Dockerfile --output type=local,dest=probe-dist .
FROM node:24-trixie-slim AS build
RUN apt-get update && apt-get install -y --no-install-recommends xz-utils \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN corepack enable && pnpm install --frozen-lockfile --filter @selfphoneng/probe \
&& node apps/probe/build-binary.mjs
FROM scratch
COPY --from=build /src/apps/probe/dist /