fix: add venv

This commit is contained in:
Timon Horlboge 2024-02-09 16:49:45 +01:00
parent 251b12a78d
commit bc191a32c8
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,12 @@ 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 beautifulsoup4
# Prepare venv
RUN python3 -m venv venv
RUN source ./venv/bin/activate && \
python3 -m pip install websockets requests beautifulsoup4
WORKDIR /data

View File

@ -1,3 +1,4 @@
#!/usr/bin/with-contenv bashio
source ./venv/bin/activate
python3 /srv/sync_ha_fb.py /data/options.json