diff --git a/api-rest/Dockerfile b/api-rest/Dockerfile index 2a9bf10..dc7791d 100644 --- a/api-rest/Dockerfile +++ b/api-rest/Dockerfile @@ -1,10 +1,10 @@ FROM php:8.0-apache -CMD ["cp", "api-rest/start-apache","/usr/local/bin"] +COPY api-rest/start-apache /usr/local/bin RUN chmod 755 /usr/local/bin/start-apache # Copy application source -COPY api-rest/* /var/www/html/ +CMD ["cp", "api-rest/*", "/var/www/html/"] RUN chown -R www-data:www-data /var/www/html CMD ["start-apache"] \ No newline at end of file