diff --git a/Dockerfile b/Dockerfile index c5cc27f..d20b0b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,9 @@ -FROM php:8.2-apache - -# curl extension is bundled in the official image; enable it -RUN docker-php-ext-enable curl 2>/dev/null || \ - (apt-get update && apt-get install -y --no-install-recommends libcurl4-openssl-dev \ - && docker-php-ext-install curl \ - && rm -rf /var/lib/apt/lists/*) +FROM php:8.2-cli-alpine COPY app/ /var/www/html/ RUN mkdir -p /data && chown www-data:www-data /data EXPOSE 80 + +CMD ["php", "-S", "0.0.0.0:80", "-t", "/var/www/html", "/var/www/html/index.php"]