From 631e809555490b9ad05e4cb589cae91d738157aa Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Thu, 26 Oct 2017 12:05:51 +0000 Subject: [PATCH] Add new file --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7de8221 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM php:apache + +WORKDIR /var/www +COPY ./ /var/www/mydl.cabillot.eu/ +WORKDIR /var/www/mydl.cabillot.eu + +RUN apt-get update >/dev/null && \ + apt-get -y install libssl-dev git unzip && \ + pecl install mongodb && \ + docker-php-ext-enable mongodb && \ + apt-get -y autoremove --purge && \ + apt-get -y clean all && \ + rm -rf /var/lib/apt/lists/* && \ + groupadd -g 1007 nginx && \ + usermod -a -G nginx www-data && \ + rmdir ../html && \ + ln -s /var/www/mydl.cabillot.eu/root /var/www/html && \ + curl "https://getcomposer.org/composer.phar" -o "composer.phar" && \ + php composer.phar install + +WORKDIR /var/www/mydl.cabillot.eu \ No newline at end of file