Jaypore CI

> Jaypore CI: Minimal, Offline, Local CI system.
Log | Files | Refs | README

build_image.sh (568B)


      1 #!/usr/bin/env bash
      2 set -euo pipefail
      3 
      4 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
      5 REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
      6 
      7 IMAGE_NAME="jci"
      8 
      9 echo "Building Docker image '${IMAGE_NAME}'..."
     10 
     11 # Write a minimal Dockerfile that installs the required tools.
     12 # The repo is NOT baked into the image; it is mounted at runtime via -v.
     13 docker build -t "${IMAGE_NAME}" - <<'DOCKERFILE'
     14 FROM alpine:latest
     15 RUN apk add --no-cache git ca-certificates stagit bash lowdown
     16 WORKDIR /work
     17 CMD ["/bin/sh"]
     18 DOCKERFILE
     19 
     20 echo "Image '${IMAGE_NAME}' built successfully."