From 94431f5e918ef64b9d8ad0d0e218bd532275c224 Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Mon, 9 Jan 2023 19:25:57 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'api-rest/Dockerfil?= =?UTF-8?q?e'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-rest/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api-rest/Dockerfile b/api-rest/Dockerfile index a5ab2bc..c7512f9 100644 --- a/api-rest/Dockerfile +++ b/api-rest/Dockerfile @@ -1,10 +1,13 @@ -FROM pensiero/apache-php-mysql +FROM php:8.0-apache COPY api-rest/start-apache /usr/local/bin RUN chmod 755 /usr/local/bin/start-apache +RUN docker-php-ext-install mysql && docker-php-ext-enable mysql +RUN apt-get update && apt-get upgrade -y + # Copy application source -ADD api-rest /var/www/ -RUN chown -R www-data:www-data /var/www/ +ADD api-rest /var/www/html +RUN chown -R www-data:www-data /var/www/html CMD ["start-apache"]