mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
* Update configurator * Update CHANGELOG.md * Update config.json * Create build.json * Update Dockerfile
20 lines
461 B
Docker
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"]
|