Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
62 lines (48 sloc) 1.73 KB
FROM php:7.2-apache
COPY scripts/ /usr/local/bin/
COPY health.html noindex.html /var/www/extra/
ENV DOT_ENV_VERSION '1.1.10'
ADD https://github.com/flipboxlabs/aws.env/archive/${DOT_ENV_VERSION}.zip /opt/
RUN chmod +x -R /usr/local/bin && \
apt-get update -y && \
apt-get install -y \
awscli \
git \
jq \
unzip \
libpq-dev \
zlib1g-dev \
libmagickwand-dev \
libmemcached-dev && \
##apache
a2enmod ssl expires rewrite proxy proxy_http && \
docker-php-ext-install gd intl pdo_pgsql pdo_mysql zip soap pcntl && \
pecl install memcached imagick xdebug && \
pecl install -o -f redis && \
docker-php-ext-enable redis memcached gd imagick xdebug opcache sodium soap && \
rm -rf /tmp/pear && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
#hopefully this would speed some things up
composer global require hirak/prestissimo && \
# Add a hooks directory
mkdir /flipbox.d/ && \
unzip "/opt/${DOT_ENV_VERSION}.zip" -d /opt/ && \
export PATH="${PATH}:/opt/aws.env-${DOT_ENV_VERSION}/bin/" && \
dotenv
#Add dotenv to the path
ENV PATH="${PATH}:/opt/aws.env-${DOT_ENV_VERSION}/bin/"
#Configurable XDEBUG options
ENV XDEBUG_ON ''
ENV XDEBUG_HOST ''
ENV XDEBUG_PORT ''
ENV XDEBUG_IDEKEY ''
ENV XDEBUG_FILE_PATH '/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini'
##===========================================================##
## AWS PARAMETER STORE
##===========================================================##
ENV AWS_PARAMETER_PATH ''
#configure your doc root
ENV APACHE_DOCUMENT_ROOT /var/www/html/web
ENTRYPOINT ["docker-entrypoint"]
EXPOSE 80 443
CMD ["apache2-foreground"]