90f12b12ca
Relates to https://github.com/shaarli/Shaarli/issues/607 Relates to https://github.com/shaarli/Shaarli/pull/612 Relates to https://github.com/shaarli/Shaarli/pull/624 See https://github.com/shaarli/Shaarli/wiki/Server-requirements Modifications: - [all][env] set $TERM=dumb to avoid debconf-related issues - [all][pkg] install ca-certificates - [all][pkg] cleanup APT cache after installing packages - [dev] refactor Dockerfile - [prod][master] refactor Dockerfile - [prod][master][php] use Composer to resolve PHP dependencies Signed-off-by: VirtualTam <virtualtam@flibidi.net>
36 lines
887 B
Docker
36 lines
887 B
Docker
FROM debian:jessie
|
|
MAINTAINER Shaarli Community
|
|
|
|
ENV TERM dumb
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y \
|
|
ca-certificates \
|
|
nginx-light \
|
|
php5-curl \
|
|
php5-fpm \
|
|
php5-gd \
|
|
php5-intl \
|
|
supervisor \
|
|
git \
|
|
nano \
|
|
&& apt-get clean
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
|
|
|
|
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
|
|
RUN chmod 755 /usr/local/bin/composer
|
|
|
|
WORKDIR /var/www
|
|
RUN git clone https://github.com/shaarli/Shaarli.git shaarli \
|
|
&& cd shaarli \
|
|
&& composer --prefer-dist install
|
|
RUN rm -rf html \
|
|
&& echo "<?php phpinfo(); ?>" > index.php \
|
|
&& chown -R www-data:www-data .
|
|
|
|
VOLUME /var/www/shaarli/data
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
|