From 2a31fad432632c00d863b5b2f79ed308c0494af7 Mon Sep 17 00:00:00 2001 From: victor141516 Date: Wed, 5 Dec 2018 13:54:20 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..71a568b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM php:7.1-apache + +RUN set -x \ + && mkdir -p /usr/src/kodexplorer \ + && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \ + && apt-get purge -y --auto-remove ca-certificates wget \ + && rm -rf /var/cache/apk/* + +RUN set -x \ + && apt-get update && apt-get install -y \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libmcrypt-dev \ + libpng-dev \ + && 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 \ + && rm -rf /var/cache/apk/* + +WORKDIR /var/www/html + +CMD ["apache2-foreground"] + +# git clone https://github.com/kalcaddle/KodExplorer +# docker run --name kodexplorer --rm -d \ +# -v $HOME:/var/www/html/data/User/admin/home \ +# -v $(pwd)/KodExplorer:/var/www/html \ +# kodexplorer