diff --git a/worker/docker-mod/root/etc/cont-init.d/92-install-dependencies b/worker/docker-mod/_old_cont-init.d/92-install-dependencies similarity index 100% rename from worker/docker-mod/root/etc/cont-init.d/92-install-dependencies rename to worker/docker-mod/_old_cont-init.d/92-install-dependencies diff --git a/worker/docker-mod/root/etc/cont-init.d/93-npm-install b/worker/docker-mod/_old_cont-init.d/93-npm-install similarity index 100% rename from worker/docker-mod/root/etc/cont-init.d/93-npm-install rename to worker/docker-mod/_old_cont-init.d/93-npm-install diff --git a/worker/docker-mod/root/etc/cont-init.d/94-install-shim b/worker/docker-mod/_old_cont-init.d/94-install-shim similarity index 100% rename from worker/docker-mod/root/etc/cont-init.d/94-install-shim rename to worker/docker-mod/_old_cont-init.d/94-install-shim diff --git a/worker/docker-mod/root/etc/cont-init.d/95-setup-codecs-dir b/worker/docker-mod/_old_cont-init.d/95-setup-codecs-dir similarity index 100% rename from worker/docker-mod/root/etc/cont-init.d/95-setup-codecs-dir rename to worker/docker-mod/_old_cont-init.d/95-setup-codecs-dir diff --git a/worker/extended-image/Dockerfile b/worker/extended-image/Dockerfile index 0dcd34a..4e3ad1a 100644 --- a/worker/extended-image/Dockerfile +++ b/worker/extended-image/Dockerfile @@ -5,10 +5,14 @@ LABEL maintainer="pabloromeo" COPY /docker-mod/root/etc/ /etc/ COPY /app /app -RUN bash /etc/cont-init.d/92-install-dependencies && \ - bash /etc/cont-init.d/93-npm-install && \ - rm /etc/cont-init.d/92-install-dependencies && \ - rm /etc/cont-init.d/93-npm-install && \ +RUN bash /etc/s6-overlay/s6-rc.d/1-install-dependencies/run && \ + bash /etc/s6-overlay/s6-rc.d/2-npm-install/run && \ + rm -rf /etc/s6-overlay/s6-rc.d/1-install-dependencies && \ + rm -rf /etc/s6-overlay/s6-rc.d/2-npm-install && \ + rm -rf /etc/s6-overlay/s6-rc.d/3-install-shim/dependencies.d && \ + rm -rf /etc/s6-overlay/s6-rc.d/4-setup-codecs-dir/dependencies.d && \ + rm /etc/s6-overlay/s6-rc.d/user/contents.d/1-install-dependencies && \ + rm /etc/s6-overlay/s6-rc.d/user/contents.d/2-npm-install && \ echo "**** cleanup ****" && \ rm -rf \ /tmp/* \