From 23455e593cb719cf0421ead599e5a9c9a6d81cba Mon Sep 17 00:00:00 2001 From: SecretMineDE Date: Fri, 9 Feb 2024 16:58:07 +0100 Subject: [PATCH] fix: venv --- fritz_temp_sync/Dockerfile | 4 ++-- fritz_temp_sync/config.yaml | 2 +- fritz_temp_sync/run.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fritz_temp_sync/Dockerfile b/fritz_temp_sync/Dockerfile index 4793b87..a9de37f 100755 --- a/fritz_temp_sync/Dockerfile +++ b/fritz_temp_sync/Dockerfile @@ -5,9 +5,9 @@ FROM $BUILD_FROM RUN apk update && apk add --no-cache python3 py-pip # Prepare venv -RUN python3 -m venv venv +RUN python3 -m venv /opt/venv -RUN source ./venv/bin/activate && \ +RUN source /opt/venv/bin/activate && \ python3 -m pip install websockets requests beautifulsoup4 WORKDIR /srv diff --git a/fritz_temp_sync/config.yaml b/fritz_temp_sync/config.yaml index 3eac451..a687411 100755 --- a/fritz_temp_sync/config.yaml +++ b/fritz_temp_sync/config.yaml @@ -1,6 +1,6 @@ name: "Fritz!Box Temperature Sync Dev" description: "Sync Fritz!DECT thermostat temperatures with other sensors in Home Assistant" -version: "0.5.3" +version: "0.5.4" startup: "application" stage: "stable" slug: "fritz_temp_sync_dev" diff --git a/fritz_temp_sync/run.sh b/fritz_temp_sync/run.sh index 5a76f1c..a203aaa 100755 --- a/fritz_temp_sync/run.sh +++ b/fritz_temp_sync/run.sh @@ -1,4 +1,4 @@ #!/usr/bin/with-contenv bashio -source ./venv/bin/activate +source /opt/venv/bin/activate python3 /srv/sync_ha_fb.py /data/options.json \ No newline at end of file