Files
addons/configurator/Dockerfile
Pascal Vizeli f0b0a69490 Fix ssl path for configurator (#183)
* Update map.py

* Update config.json

* Update Dockerfile
2017-09-30 21:04:55 +02:00

20 lines
477 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/"$(echo "$BUILD_VERSION" | cut -d '-' -f 1)"/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"]