Split fake multi-stage Dockerfile into independent CI builder and runtime images. Add proper entrypoint with UID/GID remapping via PUID/PGID, sentinel-based first-boot bootstrap, pre-creation of critical file targets, and signal-forwarding privilege drop via gosu. Standardize on Node 24, split compose into minimal + full reference. Closes #9
21 lines
768 B
Docker
21 lines
768 B
Docker
# ──────────────────────────────────────────────
|
|
# Runtime
|
|
# Image: ghcr.io/gsd-build/gsd-pi
|
|
# Used by: end users via docker run
|
|
# ──────────────────────────────────────────────
|
|
FROM node:24-slim
|
|
|
|
# Git is required for GSD's git operations
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install GSD globally — version is controlled by the build arg
|
|
ARG GSD_VERSION=latest
|
|
RUN npm install -g gsd-pi@${GSD_VERSION}
|
|
|
|
# Default working directory for user projects
|
|
WORKDIR /workspace
|
|
|
|
ENTRYPOINT ["gsd"]
|
|
CMD ["--help"]
|