2022-12-03 21:51:26 +01:00

18 lines
352 B
Docker
Executable File

ARG BUILD_FROM
FROM $BUILD_FROM
# Install requirements for add-on
RUN apk update && apk add --no-cache python3 py-pip
RUN python3 -m pip install websockets requests
WORKDIR /data
# Copy data for add-on
COPY sync_ha_fb.py /srv
COPY fritzbox.py /srv
COPY homeassistant.py /srv
COPY device.py /srv
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]