diff options
Diffstat (limited to 'Dockerfile.armhf')
-rw-r--r-- | Dockerfile.armhf | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Dockerfile.armhf b/Dockerfile.armhf new file mode 100644 index 00000000..24695633 --- /dev/null +++ b/Dockerfile.armhf | |||
@@ -0,0 +1,50 @@ | |||
1 | FROM lsiobase/alpine.armhf:3.6 | ||
2 | LABEL maintainer="Shaarli Community" | ||
3 | MAINTAINER Shaarli Community | ||
4 | |||
5 | RUN apk --update --no-cache add \ | ||
6 | ca-certificates \ | ||
7 | curl \ | ||
8 | nginx \ | ||
9 | php7 \ | ||
10 | php7-ctype \ | ||
11 | php7-curl \ | ||
12 | php7-fpm \ | ||
13 | php7-gd \ | ||
14 | php7-iconv \ | ||
15 | php7-intl \ | ||
16 | php7-json \ | ||
17 | php7-mbstring \ | ||
18 | php7-openssl \ | ||
19 | php7-phar \ | ||
20 | php7-session \ | ||
21 | php7-xml \ | ||
22 | php7-zlib \ | ||
23 | s6 | ||
24 | |||
25 | COPY .docker/nginx.conf /etc/nginx/nginx.conf | ||
26 | COPY .docker/php-fpm.conf /etc/php7/php-fpm.conf | ||
27 | COPY .docker/services.d /etc/services.d | ||
28 | |||
29 | RUN curl -sS https://getcomposer.org/installer | php7 -- --install-dir=/usr/local/bin --filename=composer \ | ||
30 | && rm -rf /etc/php7/php-fpm.d/www.conf \ | ||
31 | && sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php7/php.ini \ | ||
32 | && sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php7/php.ini | ||
33 | |||
34 | |||
35 | WORKDIR /var/www | ||
36 | RUN curl -L https://github.com/shaarli/Shaarli/archive/latest.tar.gz | tar xzf - \ | ||
37 | && mv Shaarli-latest shaarli \ | ||
38 | && cd shaarli \ | ||
39 | && composer --prefer-dist --no-dev install \ | ||
40 | && rm -rf ~/.composer \ | ||
41 | && chown -R nginx:nginx . \ | ||
42 | && ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \ | ||
43 | && ln -sf /dev/stderr /var/log/nginx/shaarli.error.log | ||
44 | |||
45 | VOLUME /var/www/shaarli/data | ||
46 | |||
47 | EXPOSE 80 | ||
48 | |||
49 | ENTRYPOINT ["/bin/s6-svscan", "/etc/services.d"] | ||
50 | CMD [] | ||