pull/451/merge
Mike 7 years ago committed by GitHub
commit d9ea54bd73

@ -0,0 +1,26 @@
FROM php:5.6-apache
RUN apt-get update && apt-get install -y \
zip \
libjpeg-dev \
libpng12-dev \
&& rm -rf /var/lib/apt/lists/*
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0xb5dbd5925590a237
RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mbstring mysqli zip exif json
ENV LYCHEE_VERSION v3.0.9
VOLUME /var/www/html/
RUN curl -fsSL -o lychee.tar.gz \
"https://github.com/electerious/Lychee/archive/${LYCHEE_VERSION}.tar.gz" \
&& tar -xzf lychee.tar.gz -C /usr/src/ \
&& rm lychee.tar.gz
# COPY php.ini /usr/local/etc/php/php.ini
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]

@ -0,0 +1,19 @@
db:
image: mysql
volumes:
- /volume/mysql/:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=lychee
web:
image: lychee
links:
- db
volumes:
- /volume/web:/var/www/html/uploads
- /volume/data:/var/www/html/data
ports:
- 80:80

@ -0,0 +1,17 @@
#!/bin/bash
set -e
if [ ! -e '/var/www/html/view.php' ]; then
echo >&2 "Lychee not found in $(pwd) - copying now..."
if [ "$(ls -A)" ]; then
echo >&2 "WARNING: $(pwd) is not empty - press Ctrl+C now if this is an error!"
( set -x; ls -A; sleep 10 )
fi
tar cf - --one-file-system -C /usr/src/Lychee* . | tar xf -
chown -R www-data /var/www/html
echo >&2 "Complete! Lychee has been successfully copied to $(pwd)"
fi
chfn -f 'Lychee Admin' www-data
exec "$@"
Loading…
Cancel
Save