16 lines
645 B
Docker
16 lines
645 B
Docker
FROM php:apache
|
|
RUN apt-get update \
|
|
&& apt-get install -y curl libzip-dev vim zip mariadb-client ssl-cert \
|
|
&& docker-php-ext-install mysqli pdo_mysql zip \
|
|
&& chown -R 1000:www-data /var/www/html \
|
|
&& a2enmod rewrite ssl
|
|
RUN usermod -u 1000 www-data
|
|
RUN groupmod -g 1000 www-data
|
|
RUN find / -user 33 -exec 'chown -h www-data' {} ';'; exit 0
|
|
RUN find / -group 33 -exec 'chgrp -h www-data' {} ';'; exit 0
|
|
COPY ./conf/php.ini "$PHP_INI_DIR/php.ini"
|
|
COPY ./conf/status.conf /etc/apache2/mods-available/status.conf
|
|
RUN a2ensite default-ssl
|
|
#RUN ln -s ../sites-available/default-ssl.conf /etc/apache2/sites-enabled/default-ssl.conf
|
|
|