Sign inSign up

kentrixnz/lychee

By kentrixnz

Updated over 9 years ago

Lychee (https://github.com/electerious/Lychee)

Image
0

279

kentrixnz/lychee repository overview

Lychee (https://github.com/electerious/Lychee) A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.

FROM php:7-apache MAINTAINER [email protected]

Install gd dependencies

RUN apt-get update &&
apt-get install -yq git
libjpeg62-turbo-dev
libpng12-dev
libgd-dev

Config php and modules

RUN docker-php-source extract
docker-php-ext-install -j$(nproc) session
mbstring mysqli pdo pdo_mysql json zip
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
&& docker-php-ext-install
gd
exif
&& docker-php-source delete

RUN service apache2 start RUN a2enmod php7 rewrite RUN service apache2 restart

Old configs

#RUN sed -i -e "s/output_buffering\s*=\s4096/output_buffering = Off/g" /etc/php/7.0/apache2/php.ini #RUN sed -i -e "s/upload_max_filesize\s=\s2M/upload_max_filesize = 1G/g" /etc/php/7.0/apache2/php.ini #RUN sed -i -e "s/post_max_size\s=\s8M/post_max_size = 1G/g" /etc/php/7.0/apache2/php.ini #RUN sed -i -e "s/max_execution_time\s=\s*30/max_exection_time = 600/g" /etc/php/7.0/apache2/php.ini

Install Lychee

WORKDIR /var/www RUN git clone https://github.com/electerious/Lychee.git html RUN chown -R www-data:www-data /var/www/html RUN chmod -R 770 /var/www/html RUN chmod -R 777 /var/www/html/uploads/ RUN chmod -R 777 /var/www/html/data/

Expose port(s)

EXPOSE 80

RUN apt-get remove --purge -y git

Expose volumes

WORKDIR / VOLUME /var/www/html/uploads VOLUME /var/www/html/data

COPY ./docker-entrypoint.sh / RUN chmod +x /docker-entrypoint.sh COPY php.ini /usr/local/etc/php/ CMD ["/docker-entrypoint.sh"]

Tag summary

Content type

Image

Digest

Size

209.8 MB

Last updated

over 9 years ago

docker pull kentrixnz/lychee