16 lines
549 B
Docker
16 lines
549 B
Docker
|
FROM php:7.3-apache
|
||
|
MAINTAINER i15 <abel@i15.nl>
|
||
|
|
||
|
# Install PHP Deps
|
||
|
# First PDO and MySQL
|
||
|
RUN docker-php-ext-install mysqli pdo_mysql opcache
|
||
|
|
||
|
# Write application to image
|
||
|
ENV APACHE_DOCUMENT_ROOT /usr/src/admin/www
|
||
|
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
|
||
|
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||
|
RUN a2enmod rewrite
|
||
|
|
||
|
# Amend permissions
|
||
|
COPY --chown=www-data . /usr/src/admin
|
||
|
RUN chmod -R 777 /usr/src/admin/test/temp
|