Files
addons/configurator/Dockerfile
Daniel Perna 4e01f98a5b Add HASS configurator to core add-ons (#180)
* Initial commit for HASS configurator

* Requested changes

* Update Dockerfile

* update mechanics like other core add-ons

* simplify

* Update config.json

* Update config.json

* Update Dockerfile

* Delete configurator.py

* Create run.sh

* Create map.py

* Update and rename hass-configurator/config.json to configurator/config.json

* Rename hass-configurator/Dockerfile to configurator/Dockerfile

* Update and rename hass-configurator/map.py to configurator/map.py

* Rename hass-configurator/run.sh to configurator/run.sh

* Update map.py

* add image for build

* Update Dockerfile
2017-09-26 11:54:31 +02:00

20 lines
447 B
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
# Add env
ENV LANG C.UTF-8
# Setup base
ARG BUILD_VERSION
RUN apk add --no-cache python3 git curl \
&& pip3 install GitPython \
&& curl -s -o /configurator.py https://raw.githubusercontent.com/danielperna84/hass-configurator/$BUILD_VERSION/configurator.py \
&& sed -i "s/GIT = False/GIT = True/g" /configurator.py \
&& apk del curl
# Copy data
COPY map.py run.sh /
RUN chmod a+x /run.sh
CMD ["/run.sh"]