aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 5e03814c..e8067031 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,20 @@
1# Stage 1: 1# Stage 1:
2# - Get Shaarli sources 2# - Get Shaarli sources
3# - Build documentation
4FROM dalibo/pandocker:stable as docs
5ADD . /pandoc/shaarli
6RUN 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
4FROM composer:latest as composer 12FROM composer:latest as composer
5ADD . /app/shaarli 13COPY --from=docs /pandoc/shaarli /app/shaarli
6RUN cd shaarli \ 14RUN 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
11FROM debian:jessie 19FROM debian:jessie
12LABEL maintainer="Shaarli Community" 20LABEL maintainer="Shaarli Community"