# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
# https://www.permacomputer.com

# Build GNU Guile 3.0.10 (checked 2025-10-15: latest stable)
FROM debian:bookworm-slim

# Install build dependencies and runtime libraries
RUN apt-get update && \
    apt-get install -y \
        guile-3.0 \
        guile-3.0-dev \
        guile-json \
        guile-gnutls \
        curl \
        ca-certificates && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy Scheme script
COPY uncloseai.scm .

# Make script executable
RUN chmod +x uncloseai.scm

# Default command runs the demo
CMD ["guile", "uncloseai.scm"]
