Cleanup root directory without recreating it

This commit is contained in:
Disassembler 2018-01-24 16:28:41 +01:00
parent 857cb131d5
commit 7ceeec43c9
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
5 changed files with 8 additions and 15 deletions

View File

@ -29,8 +29,7 @@ RUN \
# Cleanup
&& apk del .deps \
&& find /srv/ckan-datapusher/src -name '.git*' -exec rm -rf {} + \
&& rm -rf /root \
&& mkdir /root
&& rm -rf /root/.cache
VOLUME ["/etc/ckan-datapusher", "/srv/ckan-datapusher/data"]
EXPOSE 8004

View File

@ -38,8 +38,7 @@ RUN \
&& cd /tmp \
&& rm -r /usr/src/ruby \
&& apk del .deps \
&& rm -rf /root \
&& mkdir /root
&& rm -rf /root/.gem
ENV RAILS_ENV production
@ -71,10 +70,9 @@ RUN \
&& chown -R crisiscleanup:crisiscleanup /srv/crisiscleanup \
# Cleanup
&& apk del .deps \
&& rm -rf /srv/crisiscleanup/.git* \
&& find /srv/crisiscleanup -name '.git*' -exec rm -rf {} + \
&& rm -rf /usr/local/share/.cache \
&& rm -rf /root \
&& mkdir /root
&& rm -rf /root/.bundle /root/.config /root/.npm
VOLUME ["/srv/crisiscleanup/config"]
EXPOSE 8005

View File

@ -39,9 +39,7 @@ RUN \
# Cleanup
&& apk del .deps \
&& find /srv/gnuhealth -name '.git*' -exec rm -rf {} + \
&& rm -rf /usr/local/share/.cache \
&& rm -rf /root \
&& mkdir /root
&& rm -rf /usr/local/share/.cache
VOLUME ["/srv/gnuhealth/gnuhealth/tryton/server/config"]
EXPOSE 8008

View File

@ -39,10 +39,9 @@ RUN \
&& chown -R omk:omk /srv/openmapkit \
# Cleanup
&& apk del .deps \
&& rm -rf /srv/openmapkit/.git* /srv/openmapkit/api/odk/pyxform/.git* \
&& find /srv/openmapkit -name '.git*' -exec rm -rf {} + \
&& rm -rf /usr/local/share/.cache \
&& rm -rf /root \
&& mkdir /root
&& rm -rf /root/.cache /root/.config /root/.node-gyp /root/.npm
VOLUME ["/srv/openmapkit/data"]
EXPOSE 8007

View File

@ -70,8 +70,7 @@ RUN \
&& apk del .deps \
&& find /srv/pandora -name '.git*' -exec rm -rf {} + \
&& rm -rf /tmp/lib* /tmp/oxframe \
&& rm -rf /root \
&& mkdir /root
&& rm -rf /root/.cache /root/.ox
COPY --chown=8011:8011 docker/srv/ /srv/