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"]