From 6552a31cb66dd9763479286a9c0b694b220df04f Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 3 May 2026 19:16:40 +0200 Subject: [PATCH] Use Alpine PHP base image --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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"]