homeassistant-addons/epaper-station/Dockerfile

17 lines
622 B
Text
Raw Normal View History

2023-02-06 21:17:01 +00:00
ARG BUILD_FROM=ghcr.io/hassio-addons/base-python/amd64:9.0.1
FROM ${BUILD_FROM}
ADD "https://github.com/jhbruhn/ZBS_Flasher/archive/refs/heads/config_image_format.tar.gz" /src.tar.gz
RUN mkdir /src && tar xvfz /src.tar.gz -C /src --strip-components=1
RUN mv /src/CC2531_station/epaper_station_websocket/ /app
WORKDIR /app
RUN pip install -r requirements.txt
2023-02-06 21:18:24 +00:00
ADD rootfs /
# Corrects permissions for s6 v3
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi