Commit 99da84bb authored by Fabio Montefuscolo's avatar Fabio Montefuscolo

Merge branch 'php' into wordpress

parents 1e1e2989 345d1dfd
FROM php:5.6-apache
MAINTAINER Fabio Montefuscolo <fabio.montefuscolo@gmail.com>
#
# It is based on official Wordpress Dockerfile, but I put
# files direct on /var/www/html instead /usr/src/wordpress.
# You can mount your wp-content, wp-config.php and .htaccess
# and the entrypoint script will not overwrte your files.
# It helps me on theme and plugin development.
#
RUN a2enmod rewrite expires ssl
# install the PHP extensions we need
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install -j$(nproc) iconv mcrypt
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd mysqli opcache
# Install the PHP extensions we need
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libmemcached-dev && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mysqli opcache zip
# Support memcache
RUN printf "yes\n" | pecl install memcache \
&& echo 'extension=memcache.so' > /usr/local/etc/php/conf.d/pecl-memcache.ini
# Composer facility
RUN curl -s -o installer.php https://getcomposer.org/installer \
&& php installer.php --install-dir=/usr/local/bin/ --filename=composer \
&& rm installer.php
COPY docker-entrypoint.sh /entrypoint.sh
RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout localhost.key -out localhost.crt \
-subj "/C=BR/ST=SP/L=São Roque/O=Hacklab/OU=Development/CN=Dev/emailAddress=a@b.cd" \
&& mv localhost.key /etc/ssl/private/localhost.key \
&& mv localhost.crt /etc/ssl/certs/localhost.crt
COPY localhost.key /etc/ssl/private/localhost.key
COPY localhost.crt /etc/ssl/certs/localhost.crt
COPY default-ssl.conf /etc/apache2/sites-enabled
EXPOSE 80 443
......
-----BEGIN CERTIF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ARrQ
xrU5jYDg9/pZZd7Jv5hSP3vHgPPeEEiRoiRASmpV4cECgYEA0Tlf1oxqPVTyFXNA
V1Snylo1HedrGdisb7mTV5ZjaD46fOfC+pXR5PQ4JpOK5ARmcz4XtEdSnikqgZaT
Lir69ynU6j0VKCZeljb8tjt3Oybxx5bIkyDr/vCkVWUOn9cB2A4/16OVGwISSZWx
0/VueIjRB5UTgWXfSIVQRhTGwVkCgYEAwMz0EFtAKRTqeaVUstK+qETzW0U5MuDm
zigbvk0GT4BbE2iMkrnX/vYBgX4NZuhD1jGh1KzD8FW5p2lx5Pr2BOL0aDJlSet/
/9GI5MJgs3k7KgKhrz8ykmh/TUuYYsklRhofp4hKuggXa8EDriR2kaAOSZXc1ox4
GbbHAhL8kAkCgYEAyb6DNURsZPt1+00Iq60LpklZkp5FXcTacVkGRJzU+f2XND3e
evbgT99WDYyTjs7XYyRqgwGLHssfG5nwDcKQAKirj7qanf5xknMvNyEcFUO2O/if
K4/BQDEWpOkvMt2F/6mt0ecArexPafkYYgP1I/D5blBHYKy0ox85inoaNPECgYBT
7OOQ+yfCukgXC9ECxpoXxWvpnwh3DU9rDiqFfCHzGXyLxkbq19seMRgWtjg/Q3vE
EXbQjSP9ylM2fMAHXPcayXB6qvVMaCcfxKZCbhqKBYurjdmz3160PKitjOqYldaT
3WtKEhn1QPBxB2QCufyjB3kwrvuiqSLejqGyVXF7gQKBgHDR/6hFb93DBMeCOnNI
QrHV6poaTX58LgZeAHNbrvIZVww6EXrVb/fLBWk+u4V8nrwWMmMyn0rWDPCAA62z
qdZZ2ogP7CeAo6LQOocZkzXbDfMwwhTFGZAWS3umroSopUHuDKIHqLEtEDsHVR7r
DXDybqwMW71fdnFhLRhrJNAO
-----END PRIVATE KEY-----
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment