From 189af3fa6604aded4b9a061ade5d70cf4780e954 Mon Sep 17 00:00:00 2001 From: Matheus Veleci Date: Mon, 15 May 2017 12:11:06 -0300 Subject: [PATCH] Separa os comandos bower install e compilescss do collectstatic no Dockerfile --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 838257c66..d35746703 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,9 +35,12 @@ COPY config/env_dockerfile /var/interlegis/sapl/sapl/.env # compilescss - Precompile all occurrences of your SASS/SCSS files for the whole project into css files RUN python3 manage.py bower_install -- --allow-root --no-input && \ - python3 manage.py compilescss && \ - python3 manage.py collectstatic --no-input && \ - rm -rf /var/interlegis/sapl/sapl/.env && \ + python3 manage.py compilescss + +RUN python3 manage.py collectstatic --noinput --clear + +# Remove .env(fake) e sapl.db da imagem +RUN rm -rf /var/interlegis/sapl/sapl/.env && \ rm -rf /var/interlegis/sapl/sapl.db RUN chmod +x /var/interlegis/sapl/start.sh && \