2014-09-25 03:36:52 +00:00
|
|
|
FROM python:3-onbuild
|
|
|
|
MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
|
|
|
|
|
2014-10-22 15:20:09 +00:00
|
|
|
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
|
|
|
|
|
2014-09-27 14:02:55 +00:00
|
|
|
# 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
|
2014-09-27 01:44:53 +00:00
|
|
|
|
2014-10-22 15:20:09 +00:00
|
|
|
|
2014-09-25 03:36:52 +00:00
|
|
|
VOLUME /config
|
|
|
|
|
|
|
|
EXPOSE 8123
|
|
|
|
|
|
|
|
CMD [ "python", "./start.py", "--docker" ]
|