Use .deps in OpenMapKit Dockerfile

This commit is contained in:
Disassembler 2017-12-16 20:40:06 +01:00
parent 4a1e821796
commit 7eddaeda5e

View File

@ -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