Use Alpine PHP base image

This commit is contained in:
Daniel committed 2026-05-03 19:16:40 +02:00
1 parent 4e82961d5a
commit 543ca281db
1 file changed
+3 -7
+3 -7
View File
@@ -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"]