Update Dockerfile

This commit is contained in:
2024-02-20 17:33:24 +08:00
parent e93096ea3b
commit 90fb2ba3ff

View File

@@ -1,3 +1,11 @@
FROM php:7.1-apache
COPY src /var/www/html/
EXPOSE 80
FROM php:7.4-apache
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
COPY start-apache /usr/local/bin
RUN a2enmod rewrite
# Copy application source
COPY src /var/www/
RUN chown -R www-data:www-data /var/www
CMD ["start-apache"]