mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-22 21:34:24 +01:00
* 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
20 lines
447 B
Docker
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"]
|