FROM php:8.2-cli

WORKDIR /app
COPY . /app

# curl + json are enabled by default in the official image.
EXPOSE 8080

# Built-in server with public/ as docroot and index.php as the fallback router.
CMD ["php", "-S", "0.0.0.0:8080", "-t", "public", "public/index.php"]
