Add Dockerfile

pull/313/head
victor141516 2018-12-05 13:54:20 +01:00
parent ae89910dc9
commit 2a31fad432
1 changed files with 28 additions and 0 deletions

28
Dockerfile Executable file
View File

@ -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