X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Dockerfile;h=f6120b71f2b1d4507cd46dcaf7ebf09934d98139;hb=8bbf57a2d0dfe8d8d6416a26f9ff1177c77e806b;hp=4cda6f31316183493b65b33bb6c6dab26f680465;hpb=2a3fe990dd0730fce9465bbef6ad1a01054f775d;p=github%2Fshaarli%2FShaarli.git diff --git a/Dockerfile b/Dockerfile index 4cda6f31..f6120b71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,9 @@ 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 + && mkdocs build --clean # Stage 2: # - Resolve PHP dependencies with Composer @@ -16,7 +17,7 @@ RUN cd shaarli \ # 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 \ @@ -25,7 +26,7 @@ RUN cd shaarli \ # Stage 4: # - Shaarli image -FROM alpine:3.6 +FROM alpine:3.8 LABEL maintainer="Shaarli Community" RUN apk --update --no-cache add \ @@ -43,6 +44,7 @@ RUN apk --update --no-cache add \ php7-openssl \ php7-session \ php7-xml \ + php7-simplexml \ php7-zlib \ s6 @@ -62,6 +64,7 @@ RUN chown -R nginx:nginx . \ && ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \ && ln -sf /dev/stderr /var/log/nginx/shaarli.error.log +VOLUME /var/www/shaarli/cache VOLUME /var/www/shaarli/data EXPOSE 80