From 5026b344188d864a252a7485ff877709aba715f1 Mon Sep 17 00:00:00 2001 From: Andre Pastore Date: Thu, 2 Jun 2016 23:48:35 -0300 Subject: [PATCH] dockerfile: sass, rubygems e quiet scripts --- .dockerignore | 1 + Dockerfile | 9 +++++++-- docker-compose.yml | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 6b8710a..b3b06e2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ .git +**/.sass-cache diff --git a/Dockerfile b/Dockerfile index a53307c..8173175 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,13 @@ FROM python # Install base dependencies for setup and dev runtime -RUN apt-get update && apt-get install -y libxml2-dev libxslt1-dev python-dev python-virtualenv nodejs npm -RUN npm install gulp gulp-uglify gulp-concat +RUN apt-get -q update && apt-get -q install -y libxml2-dev libxslt1-dev python-dev python-virtualenv + +RUN apt-get -q update && apt-get -q install -y nodejs npm +RUN npm install gulp gulp-uglify gulp-concat &>> /dev/build.log + +RUN apt-get -q update && apt-get -q install -y rubygems +RUN gem install -q sass ENV ROOT_DIR /opt/pythonbrasil12-site diff --git a/docker-compose.yml b/docker-compose.yml index abe8d49..e7182f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,3 +4,5 @@ site: - 8000:8000 volumes: - .:/opt/pythonbrasil12-site/site + environment: + DEBUG: 1