Skip to content

Commit

Permalink
Separa os comandos bower install e compilescss do collectstatic no Do…
Browse files Browse the repository at this point in the history
…ckerfile
  • Loading branch information
matheusvsantos committed May 15, 2017
1 parent 285d32e commit 189af3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 189af3f

Please sign in to comment.