From 55f85f59d998f700c1ed72cea283b9d54f6d6db3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 22 Oct 2014 08:20:09 -0700 Subject: [PATCH] Fix the Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7e37fc25f2b7..bf6a6cfef75d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,22 @@ FROM python:3-onbuild MAINTAINER Paulus Schoutsen +RUN apt-get update && apt-get install -y nodejs npm + +RUN npm install -g bower vulcanize + +# Debian installs nodejs as nodejs instead of node. +RUN ln -sf /usr/bin/nodejs /usr/sbin/node + +# RUN ./build_polymer +RUN cd homeassistant/components/http/www_static/polymer && \ + bower install --allow-root && \ + vulcanize -o build.htm home-assistant-main.html + # Temporary fix while waiting for new version of phue to be released RUN curl https://raw.githubusercontent.com/studioimaginaire/phue/master/phue.py -o phue.py + VOLUME /config EXPOSE 8123