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

# Perl 5.42 (checked 2025-10-13: perl:5.42-slim is latest stable)
FROM perl:5.42-slim

RUN apt-get update && \
    apt-get install -y ca-certificates make gcc libc-dev libssl-dev && \
    rm -rf /var/lib/apt/lists/* && \
    cpanm --notest LWP::UserAgent LWP::Protocol::https JSON HTTP::Request && \
    apt-get purge -y make gcc libc-dev && \
    apt-get autoremove -y

WORKDIR /app
COPY uncloseai.pl .
RUN chmod +x uncloseai.pl

CMD ["perl", "uncloseai.pl"]
