diff --git a/Dockerfile b/Dockerfile index 09d6c8e6..4f11c65f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,10 @@ RUN pip install . psycopg2 gunicorn elasticsearch python-memcached easy_thumbnai RUN pip install colab-edemocracia colab-audiencias colab-discourse \ colab-wikilegis colab-mkdocs-tos +WORKDIR /usr/lib/python2.7/site-packages/colab_edemocracia +RUN npm install +WORKDIR /var/labhacker/colab + COPY ./misc/etc/colab/settings.py ./misc/etc/colab/gunicorn.py /etc/colab/ COPY ./misc/etc/colab/settings.d/01-database.py \ ./misc/etc/colab/settings.d/02-memcached.py \ diff --git a/misc/etc/colab/plugins.d/edemocracia.py b/misc/etc/colab/plugins.d/edemocracia.py index 8055f4ab..a2d6e28b 100644 --- a/misc/etc/colab/plugins.d/edemocracia.py +++ b/misc/etc/colab/plugins.d/edemocracia.py @@ -37,6 +37,9 @@ ), 'LIBSASS_SOURCEMAPS': 'DEBUG', 'COMPRESS_ROOT': "/usr/lib/python2.7/site-packages/colab_edemocracia/static", + 'COMPRESS_NODE_MODULES': "/usr/lib/python2.7/site-packages/colab_edemocracia/node_modules", + "COMPRESS_NODE_SASS_BIN": "/usr/lib/python2.7/site-packages/colab_edemocracia/node_modules/.bin/node-sass", + "COMPRESS_POSTCSS_BIN": "/usr/lib/python2.7/site-packages/colab_edemocracia/node_modules/.bin/postcss", 'COLAB_TEMPLATES': ( "/usr/lib/python2.7/site-packages/colab_edemocracia/templates", ),