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

# Alpine 3.22 with Lua 5.4 (checked 2025-10-13: alpine:3.22 with lua5.4 is latest stable)
FROM alpine:latest

RUN apk add --no-cache lua5.4 lua5.4-dev luarocks5.4 ca-certificates openssl-dev gcc musl-dev

# Install Lua dependencies
RUN luarocks-5.4 install luasocket && \
    luarocks-5.4 install luasec && \
    luarocks-5.4 install lua-cjson

WORKDIR /app
COPY uncloseai.lua .

CMD ["lua5.4", "uncloseai.lua"]
