From a17cd6e4f3bf07cc1696d3759d718ab58278437e Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 25 Dec 2017 08:49:50 +0100 Subject: [PATCH] Install OpenMapKit's Yarn as native dependency package --- openmapkit/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmapkit/Dockerfile b/openmapkit/Dockerfile index f00ba7b..8c7ef45 100644 --- a/openmapkit/Dockerfile +++ b/openmapkit/Dockerfile @@ -9,7 +9,7 @@ RUN \ # Install runtime dependencies apk --no-cache add nodejs openjdk8-jre-base \ # Install build dependencies - && apk --no-cache add --virtual .deps git build-base paxctl py2-pip \ + && apk --no-cache add --virtual .deps git build-base paxctl py2-pip yarn \ # Fix grsec attributes to loosen memory protection restrictions && paxctl -cm /usr/bin/node \ # Clone OpenMapKit @@ -18,12 +18,12 @@ RUN \ && git submodule update --init \ # Install OpenMapKit dependencies && pip install -r requirements.txt \ - && npm install -g yarn \ && npm install libxmljs \ && yarn \ # Create OS user && addgroup -S -g 8007 omk \ && adduser -S -u 8007 -h /srv/openmapkit -s /bin/false -g omk -G omk omk \ + && chown -R omk:omk /srv/openmapkit \ # Cleanup && apk --no-cache del .deps \ && rm -rf /srv/openmapkit/.git* /srv/openmapkit/api/odk/pyxform/.git* \