Properly cleanup after OpenMapKit docker image build

This commit is contained in:
Disassembler 2017-12-20 11:07:40 +01:00
parent 8ff4cfe525
commit 2b63a7a17d

View File

@ -17,7 +17,8 @@ RUN apk --no-cache add --virtual .deps git build-base paxctl py2-pip \
&& adduser -S -u 8007 -h /srv/openmapkit -s /bin/false -g omk -G omk omk \
&& apk --no-cache del .deps \
&& rm -rf /srv/openmapkit/.git* /srv/openmapkit/api/odk/pyxform/.git* \
&& rm -rf /root/* || true
&& rm -rf /root \
&& mkdir /root
VOLUME ["/srv/openmapkit/data"]
EXPOSE 8007