# Ravin license generator (vendor only). Built by docker-run.sh from a
# minimal context: the three signing classes + tools/license. Never push this
# image to a public registry: it contains the plain signing key.
FROM php:8.3-cli-alpine

WORKDIR /app
COPY app/Support/License/ /app/app/Support/License/
COPY tools/license/ /app/tools/license/

ENV LICENSE_UI_IN_DOCKER=1 \
    LICENSE_STORE=/data/licenses

EXPOSE 8099
CMD ["php", "-d", "display_errors=0", "-d", "log_errors=1", "-d", "upload_max_filesize=1M", "-d", "post_max_size=2M", \
     "-S", "0.0.0.0:8099", "-t", "/app/tools/license/ui", "/app/tools/license/ui/index.php"]
