2023-02-06 21:17:01 +00:00
|
|
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base-python/amd64:9.0.1
|
|
|
|
FROM ${BUILD_FROM}
|
|
|
|
|
2023-02-06 21:36:21 +00:00
|
|
|
ADD "https://github.com/jhbruhn/ZBS_Flasher/archive/refs/heads/database_path_config.tar.gz" /src.tar.gz
|
2023-02-06 21:17:01 +00:00
|
|
|
RUN mkdir /src && tar xvfz /src.tar.gz -C /src --strip-components=1
|
|
|
|
RUN mv /src/CC2531_station/epaper_station_websocket/ /app
|
|
|
|
|
|
|
|
WORKDIR /app
|
2023-02-06 21:23:00 +00:00
|
|
|
RUN ls /src && 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
|