aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/alpine/Dockerfile.master
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2018-06-20 16:59:29 +0200
committerGitHub <noreply@github.com>2018-06-20 16:59:29 +0200
commit6325e74caa464818000066b5112cfd293e168e50 (patch)
tree8c452980d8c7d6f98aa61e2d814377a1efc70fb3 /docker/alpine/Dockerfile.master
parent26b0b2022870a540c1a6d54e949c4bdc1486daed (diff)
parentc064d3179e0396983bdf8dee545388e4142ed842 (diff)
downloadShaarli-6325e74caa464818000066b5112cfd293e168e50.tar.gz
Shaarli-6325e74caa464818000066b5112cfd293e168e50.tar.zst
Shaarli-6325e74caa464818000066b5112cfd293e168e50.zip
Merge pull request #1158 from virtualtam/master-dockerfile
Master: Build the Docker images from the local sources
Diffstat (limited to 'docker/alpine/Dockerfile.master')
-rw-r--r--docker/alpine/Dockerfile.master63
1 files changed, 0 insertions, 63 deletions
diff --git a/docker/alpine/Dockerfile.master b/docker/alpine/Dockerfile.master
deleted file mode 100644
index 7bbe1fb7..00000000
--- a/docker/alpine/Dockerfile.master
+++ /dev/null
@@ -1,63 +0,0 @@
1# Stage 1:
2# - Get Shaarli sources
3# - Resolve PHP dependencies with Composer
4FROM composer:latest as composer
5RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf - \
6 && mv Shaarli-master shaarli \
7 && cd shaarli \
8 && composer --prefer-dist --no-dev install
9
10# Stage 2:
11# - Frontend dependencies
12FROM node:9.9-alpine as node
13COPY --from=composer /app/shaarli shaarli
14RUN cd shaarli \
15 && yarn install \
16 && yarn run build \
17 && rm -rf node_modules
18
19# Stage 3:
20# - Shaarli image
21FROM alpine:3.6
22LABEL maintainer="Shaarli Community"
23
24RUN apk --update --no-cache add \
25 ca-certificates \
26 nginx \
27 php7 \
28 php7-ctype \
29 php7-curl \
30 php7-fpm \
31 php7-gd \
32 php7-iconv \
33 php7-intl \
34 php7-json \
35 php7-mbstring \
36 php7-openssl \
37 php7-session \
38 php7-xml \
39 php7-zlib \
40 s6
41
42COPY nginx.conf /etc/nginx/nginx.conf
43COPY php-fpm.conf /etc/php7/php-fpm.conf
44COPY services.d /etc/services.d
45
46RUN rm -rf /etc/php7/php-fpm.d/www.conf \
47 && sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php7/php.ini \
48 && sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php7/php.ini
49
50
51WORKDIR /var/www
52COPY --from=node /shaarli shaarli
53
54RUN chown -R nginx:nginx . \
55 && ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
56 && ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
57
58VOLUME /var/www/shaarli/data
59
60EXPOSE 80
61
62ENTRYPOINT ["/bin/s6-svscan", "/etc/services.d"]
63CMD []