Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreozoux committed Feb 7, 2016
0 parents commit 394e91c
Show file tree
Hide file tree
Showing 4 changed files with 825 additions and 0 deletions.
66 changes: 66 additions & 0 deletions Dockerfile
@@ -0,0 +1,66 @@
FROM php:5.6-fpm

RUN apt-get update && apt-get install -y \
bzip2 \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libmcrypt-dev \
libpng12-dev \
libpq-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/*

#gpg key from hello@withknown.com
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "53DE 5B99 2244 9132 8B92 7516 052D B5AC 742E 3B47"

RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install exif gd intl mbstring mcrypt mysql opcache pdo_mysql zip json xmlrpc

# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.fast_shutdown=1'; \
echo 'opcache.enable_cli=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini

# PECL extensions
RUN pecl install APCu-4.0.10 \
&& docker-php-ext-enable apcu

ENV KNOWN_VERSION 0.9.0.2
VOLUME /var/www/html

RUN curl -o known.zip -SL http://assets.withknown.com/releases/known-${KNOWN_VERSION}.zip \
&& curl -o known.zip.sig -SL http://assets.withknown.com/releases/known-${KNOWN_VERSION}.zip.sig \
&& gpg --verify known.zip.sig \
&& unzip known.zip -d /usr/src/known/ \
&& rm known.zip* \
&& cd /usr/src/known/IdnoPlugins \
&& curl -L https://github.com/idno/Twitter/archive/master.zip -o twitter.zip \
&& unzip twitter.zip \
&& mv Twitter-master/ Twitter \
&& rm twitter.zip \
&& curl -L https://github.com/idno/Facebook/archive/master.zip -o facebook.zip \
&& unzip facebook.zip \
&& mv Facebook-master/ Facebook \
&& rm facebook.zip \
&& curl -L https://github.com/idno/Markdown/archive/master.zip -o markdown.zip \
&& unzip markdown.zip \
&& mv Markdown-master/ Markdown \
&& rm markdown.zip \
&& curl -L https://github.com/pierreozoux/KnownAppNet/archive/master.zip -o app-net.zip \
&& unzip app-net.zip \
&& mv KnownAppNet-master AppNet \
&& rm app-net.zip

COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]

0 comments on commit 394e91c

Please sign in to comment.