Files
addons/configurator/Dockerfile
Daniel Perna c6c764d9ec Update configurator to 0.2.8 (#283)
* Update configurator

* Update CHANGELOG.md

* Update config.json

* Create build.json

* Update Dockerfile
2018-05-07 14:45:18 +02:00

20 lines
461 B
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
# Add env
ENV LANG C.UTF-8
# Setup base
ARG CONFIGURATOR_VERSION
RUN apk add --no-cache python3 git curl \
&& pip3 install GitPython \
&& curl -s -o /configurator.py https://raw.githubusercontent.com/danielperna84/hass-configurator/$CONFIGURATOR_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"]