# 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 \
        curl \
        ca-certificates && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy Scheme scripts
COPY hermes-nonstreaming.scm .
COPY hermes-streaming.scm .
COPY qwen-nonstreaming.scm .
COPY qwen-streaming.scm .
COPY tts.scm .

# Make scripts executable
RUN chmod +x *.scm

# Default command shows available examples
CMD ["sh", "-c", "echo 'Available examples:' && echo '  guile hermes-nonstreaming.scm' && echo '  guile hermes-streaming.scm' && echo '  guile qwen-nonstreaming.scm' && echo '  guile qwen-streaming.scm' && echo '  guile tts.scm'"]
