diff --git a/Dockerfile b/Dockerfile index bc7b0bed..789f3557 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,7 +63,9 @@ COPY --chown=app:www-data ./public/packs-production ./public/packs # assets ya están pre-compilados. RUN sed -re "/(sassc|uglifier|bootstrap|coffee-rails)/d" -i Gemfile RUN bundle clean -RUN rm -rf ./node_modules ./tmp/cache ./.git +RUN rm -rf ./node_modules ./tmp/cache ./.git ./test ./doc +# Eliminar archivos innecesarios +RUN find /srv/http/vendor/ruby/2.7.0/ -maxdepth 3 -type d -name test -o -name spec -o name rubocop | xargs -r rm -rf # Contenedor final FROM sutty/monit:latest