Public Repository

Last pushed: 5 months ago
Short Description
Short description is empty for this repo.
Full Description

FROM webdevops/php-apache:ubuntu-16.04

MAINTAINER teclaizerai@gmail.com

LABEL application=memu

ENV WEB_DOCUMENT_ROOT /app/web
ENV WEB_DOCUMENT_INDEX app.php
ENV WEB_ALIAS_DOMAIN *.vm
ENV WEB_PHP_SOCKET 127.0.0.1:9000

COPY conf/ /opt/docker/

WORKDIR /app

Install apache

RUN /usr/local/bin/apt-install \
apache2 \
&& sed -ri ' \
s!^(\sCustomLog)\s+\S+!\1 /proc/self/fd/1!g; \
s!^(\s
ErrorLog)\s+\S+!\1 /proc/self/fd/2!g; \
' /etc/apache2/apache2.conf \
&& rm -f /etc/apache2/sites-enabled/* \
&& ln -sf /opt/docker/etc/httpd/main.conf /etc/apache2/sites-enabled/10-docker.conf \
&& a2enmod actions proxy proxy_fcgi ssl rewrite headers expires \
&& /opt/docker/bin/provision run --tag bootstrap --role webdevops-apache --role webdevops-php-apache \
&& /opt/docker/bin/bootstrap.sh

USER application

RUN composer global require "fxp/composer-asset-plugin:~1.2"

USER root

RUN chmod +x /opt/docker/bin/service.d/httpd.sh

RUN echo memory_limit = 1024M >> /opt/docker/etc/php/php.ini

EXPOSE 80
EXPOSE 443

CMD ["supervisord"]

Docker Pull Command
Owner
orensource

Comments (0)