From 97babe8fcc096da3ad06a4ef8c58af9257dade4e Mon Sep 17 00:00:00 2001 From: f Date: Mon, 5 Oct 2020 15:20:03 -0300 Subject: [PATCH] eliminar tests del contenedor --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bc7b0be..789f355 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