Cleanup root directory without recreating it
This commit is contained in:
parent
857cb131d5
commit
7ceeec43c9
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user