aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/development/Dockerfile
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-08-12 21:36:54 +0200
committerVirtualTam <virtualtam@flibidi.net>2016-08-14 16:21:30 +0200
commit90f12b12ca9a828e2aaf2535c09ec9c73ff1e2a6 (patch)
tree9e9c50994b76c35abd543dd296aa60b4d3a0c40e /docker/development/Dockerfile
parent8758bb0ac8cb68d32122009dbcb977d2f0fad2b0 (diff)
downloadShaarli-90f12b12ca9a828e2aaf2535c09ec9c73ff1e2a6.tar.gz
Shaarli-90f12b12ca9a828e2aaf2535c09ec9c73ff1e2a6.tar.zst
Shaarli-90f12b12ca9a828e2aaf2535c09ec9c73ff1e2a6.zip
Docker: update dependencies, introduce Composer
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>
Diffstat (limited to 'docker/development/Dockerfile')
-rw-r--r--docker/development/Dockerfile30
1 files changed, 19 insertions, 11 deletions
diff --git a/docker/development/Dockerfile b/docker/development/Dockerfile
index 2ed59b89..0c19b085 100644
--- a/docker/development/Dockerfile
+++ b/docker/development/Dockerfile
@@ -1,26 +1,34 @@
1FROM debian:jessie 1FROM debian:jessie
2MAINTAINER Shaarli Community 2MAINTAINER Shaarli Community
3 3
4ENV TERM dumb
4RUN apt-get update \ 5RUN apt-get update \
5 && apt-get install -y \ 6 && apt-get install --no-install-recommends -y \
6 nginx-light php5-fpm php5-gd supervisor \ 7 ca-certificates \
7 git nano 8 nginx-light \
8 9 php5-curl \
9ADD https://getcomposer.org/composer.phar /usr/local/bin/composer 10 php5-fpm \
10RUN chmod 755 /usr/local/bin/composer 11 php5-gd \
12 php5-intl \
13 supervisor \
14 git \
15 nano \
16 && apt-get clean
11 17
12COPY nginx.conf /etc/nginx/nginx.conf 18COPY nginx.conf /etc/nginx/nginx.conf
13COPY supervised.conf /etc/supervisor/conf.d/supervised.conf 19COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
14RUN echo "<?php phpinfo(); ?>" > /var/www/index.php 20
21ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
22RUN chmod 755 /usr/local/bin/composer
15 23
16WORKDIR /var/www 24WORKDIR /var/www
25RUN git clone https://github.com/shaarli/Shaarli.git shaarli \
26 && cd shaarli \
27 && composer --prefer-dist install
17RUN rm -rf html \ 28RUN rm -rf html \
18 && git clone https://github.com/shaarli/Shaarli.git shaarli \ 29 && echo "<?php phpinfo(); ?>" > index.php \
19 && chown -R www-data:www-data . 30 && chown -R www-data:www-data .
20 31
21WORKDIR /var/www/shaarli
22RUN composer install
23
24VOLUME /var/www/shaarli/data 32VOLUME /var/www/shaarli/data
25 33
26EXPOSE 80 34EXPOSE 80