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

# Use official D language Docker image (checked 2025-10-15: dlang2/dmd-ubuntu:latest is stable)
FROM dlang2/dmd-ubuntu:latest

# Install curl development libraries (required for std.net.curl)
RUN apt-get update && \
    apt-get install -y libcurl4-openssl-dev && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy D source file
COPY uncloseai.d .

# Compile uncloseai
RUN dmd -of=uncloseai uncloseai.d

# Default command runs the examples
CMD ["./uncloseai"]
