2021-08-10 16:52:47 +02:00
|
|
|
FROM php:7.4-apache
|
|
|
|
|
|
|
|
COPY src/ /var/www/html/
|
|
|
|
|
2021-08-10 17:53:21 +02:00
|
|
|
COPY ./entrypoint.sh /
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
2021-08-10 16:52:47 +02:00
|
|
|
# Use the default production configuration
|
|
|
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
2021-08-10 17:53:21 +02:00
|
|
|
|
2021-08-10 16:52:47 +02:00
|
|
|
RUN a2enmod rewrite
|
2021-08-10 17:53:21 +02:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|