diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,12 +1,20 @@ | |||
1 | # Stage 1: | 1 | # Stage 1: |
2 | # - Get Shaarli sources | 2 | # - Get Shaarli sources |
3 | # - Build documentation | ||
4 | FROM dalibo/pandocker:stable as docs | ||
5 | ADD . /pandoc/shaarli | ||
6 | RUN cd /pandoc/shaarli \ | ||
7 | && make htmldoc \ | ||
8 | && rm -rf .git | ||
9 | |||
10 | # Stage 2: | ||
3 | # - Resolve PHP dependencies with Composer | 11 | # - Resolve PHP dependencies with Composer |
4 | FROM composer:latest as composer | 12 | FROM composer:latest as composer |
5 | ADD . /app/shaarli | 13 | COPY --from=docs /pandoc/shaarli /app/shaarli |
6 | RUN cd shaarli \ | 14 | RUN cd shaarli \ |
7 | && composer --prefer-dist --no-dev install | 15 | && composer --prefer-dist --no-dev install |
8 | 16 | ||
9 | # Stage 2: | 17 | # Stage 3: |
10 | # - Shaarli image | 18 | # - Shaarli image |
11 | FROM debian:jessie | 19 | FROM debian:jessie |
12 | LABEL maintainer="Shaarli Community" | 20 | LABEL maintainer="Shaarli Community" |