Use .deps in OpenMapKit Dockerfile
This commit is contained in:
parent
4a1e821796
commit
7eddaeda5e
@ -3,7 +3,8 @@ MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||
|
||||
RUN apk --no-cache add python2
|
||||
|
||||
RUN apk --no-cache add nodejs git build-base openjdk8-jre-base py2-pip \
|
||||
RUN apk --no-cache add --virtual .deps git build-base py2-pip \
|
||||
&& apk add nodejs git openjdk8-jre-base \
|
||||
&& git clone --depth 1 https://github.com/AmericanRedCross/OpenMapKitServer /srv/openmapkit \
|
||||
&& cd /srv/openmapkit \
|
||||
&& git submodule update --init \
|
||||
@ -13,7 +14,7 @@ RUN apk --no-cache add nodejs git build-base openjdk8-jre-base py2-pip \
|
||||
&& yarn \
|
||||
&& addgroup -S -g 8007 omk \
|
||||
&& adduser -S -u 8007 -h /srv/openmapkit -s /bin/false -g omk -G omk omk \
|
||||
&& apk --no-cache del git build-base py2-pip \
|
||||
&& apk --no-cache del .deps \
|
||||
&& rm -rf /srv/openmapkit/.git* /srv/openmapkit/api/odk/pyxform/.git* \
|
||||
&& rm -rf /root/* || true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user