Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6552a31cb6 |
+3
-7
@@ -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"]
|
||||
Reference in new issue
Block a user