FROM python:3-alpine as docs
ADD . /usr/src/app/shaarli
RUN cd /usr/src/app/shaarli \
+ && apk add --no-cache gcc musl-dev \
&& pip install --no-cache-dir mkdocs \
&& mkdocs build --clean
# Stage 3:
# - Frontend dependencies
-FROM node:9.9-alpine as node
+FROM node:12-alpine as node
COPY --from=composer /app/shaarli shaarli
RUN cd shaarli \
&& yarn install \
# Stage 4:
# - Shaarli image
-FROM alpine:3.7
+FROM alpine:3.8
LABEL maintainer="Shaarli Community"
RUN apk --update --no-cache add \
php7-openssl \
php7-session \
php7-xml \
+ php7-simplexml \
php7-zlib \
s6