FROM debian:bookworm

# Building the image needs the network, for apt; using it doesn't:
#
#   podman build -t sandbattery-build .
#   podman run --rm --network=none -v "$PWD":/src -w /src sandbattery-build make
#
# Rootless Podman maps the container's root to you, so build/ and dist/
# come out owned by you. On an SELinux host, add :Z to the volume.

# nodejs (18.20) also brings @types/node, where tsconfig.json's typeRoots
# looks; node-typescript (4.8) is tsc, and the module tools/bundle.ts loads.
RUN apt-get update
RUN apt-get install -y --no-install-recommends make nodejs node-typescript
