Install OpenMapKit's Yarn as native dependency package
This commit is contained in:
parent
013551c143
commit
a17cd6e4f3
@ -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* \
|
||||
|
Loading…
Reference in New Issue
Block a user