aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/debian/Dockerfile.stable
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2017-10-21 18:00:08 +0200
committerGitHub <noreply@github.com>2017-10-21 18:00:08 +0200
commit72cfe44436f4316112fc4aabfe8940aa7b4adcab (patch)
treee72c757a2cfa157fd47911fb759cbed18ec747b2 /docker/debian/Dockerfile.stable
parent1f40141a6992af6620962cba98b72f14de076615 (diff)
parente3a3cc0da85925d08df29a2146b54b4159d5a14b (diff)
downloadShaarli-72cfe44436f4316112fc4aabfe8940aa7b4adcab.tar.gz
Shaarli-72cfe44436f4316112fc4aabfe8940aa7b4adcab.tar.zst
Shaarli-72cfe44436f4316112fc4aabfe8940aa7b4adcab.zip
Merge pull request #846 from virtualtam/docker/alpine
Docker: switch to Alpine Linux
Diffstat (limited to 'docker/debian/Dockerfile.stable')
-rw-r--r--docker/debian/Dockerfile.stable37
1 files changed, 37 insertions, 0 deletions
diff --git a/docker/debian/Dockerfile.stable b/docker/debian/Dockerfile.stable
new file mode 100644
index 00000000..fc9588b0
--- /dev/null
+++ b/docker/debian/Dockerfile.stable
@@ -0,0 +1,37 @@
1FROM debian:jessie
2MAINTAINER Shaarli Community
3
4ENV TERM dumb
5RUN apt-get update \
6 && apt-get install --no-install-recommends -y \
7 ca-certificates \
8 curl \
9 nginx-light \
10 php5-curl \
11 php5-fpm \
12 php5-gd \
13 php5-intl \
14 supervisor \
15 && apt-get clean
16
17RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini
18RUN sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini
19COPY nginx.conf /etc/nginx/nginx.conf
20COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
21
22ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
23RUN chmod 755 /usr/local/bin/composer
24
25WORKDIR /var/www
26RUN curl -L https://github.com/shaarli/Shaarli/archive/stable.tar.gz | tar xzf - \
27 && mv Shaarli-stable shaarli \
28 && cd shaarli \
29 && composer --prefer-dist --no-dev install
30RUN rm -rf html \
31 && chown -R www-data:www-data .
32
33VOLUME /var/www/shaarli/data
34
35EXPOSE 80
36
37CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]