-
Notifications
You must be signed in to change notification settings - Fork 10
Description
FROM ubuntu:16.04
#Update repository
RUN apt-get update -y
##Install Apache
RUN apt-get install -y apache2
##Install PHP Modules
RUN apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql php7.0-mcrypt php7.0-zip php7.0-curl
##Copy Application Files
RUN rm -rf /srv/app/opstools/OPSITPublisherTools
ADD ./opstools/OPSITPublisherTools /srv/app/opstools/OPSITPublisherTools
COPY 000-default.conf /etc/apache2/sites-available/
COPY apache2.conf /etc/apache2/
#COPY php.ini /etc/php/7.0/apache2/php.ini
RUN docker-php-ext-install pdo_mysql
##configure Apache
RUN chown -R www-data:www-data /var/www
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
##Open port 80
EXPOSE 80
##Start Apache service
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]