fix: add venv
This commit is contained in:
parent
251b12a78d
commit
bc191a32c8
@ -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
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
source ./venv/bin/activate
|
||||
python3 /srv/sync_ha_fb.py /data/options.json
|
Loading…
x
Reference in New Issue
Block a user