diff --git a/openmapkit/Dockerfile b/openmapkit/Dockerfile index 3f5db73..4a560fd 100644 --- a/openmapkit/Dockerfile +++ b/openmapkit/Dockerfile @@ -3,7 +3,8 @@ MAINTAINER Disassembler 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