mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
20 lines
477 B
Docker
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"]
|