From 6353046dddbf19a5f3cc80a90479878c1f490b14 Mon Sep 17 00:00:00 2001 From: ai-dev Date: Fri, 17 Jan 2025 00:13:08 +0100 Subject: [PATCH] update --- freqtrade-NFIx5/Dockerfile | 3 --- freqtrade-NFIx5/rootfs/etc/s6-overlay/s6-rc.d/fqmbotnfix5/run | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/freqtrade-NFIx5/Dockerfile b/freqtrade-NFIx5/Dockerfile index 64d82e8..19d5f23 100644 --- a/freqtrade-NFIx5/Dockerfile +++ b/freqtrade-NFIx5/Dockerfile @@ -105,9 +105,6 @@ RUN python3 -m pip install -e . # Activate the virtual environment (implicitly handled in entrypoint or CMD) RUN echo "source /freqtrade/.venv/bin/activate" >> ~/.bashrc - -RUN pip install --user --no-cache-dir --no-build-isolation -r /share/fqm_bot_nfix5/tests/requirements.txt - RUN chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/* # Labels diff --git a/freqtrade-NFIx5/rootfs/etc/s6-overlay/s6-rc.d/fqmbotnfix5/run b/freqtrade-NFIx5/rootfs/etc/s6-overlay/s6-rc.d/fqmbotnfix5/run index 56a343d..fcaeb94 100644 --- a/freqtrade-NFIx5/rootfs/etc/s6-overlay/s6-rc.d/fqmbotnfix5/run +++ b/freqtrade-NFIx5/rootfs/etc/s6-overlay/s6-rc.d/fqmbotnfix5/run @@ -53,4 +53,8 @@ export "FREQTRADE__STRATEGY=$(bashio::config 'strategy')" bashio::log.info "starting the bot ..." +source /freqtrade/.venv/bin/freqtrade + +pip install --user --no-cache-dir --no-build-isolation -r /share/fqm_bot_nfix5/tests/requirements.txt + exec /freqtrade/.venv/bin/freqtrade trade --db-url sqlite:////share/fqm_bot_nfix5/user_data/${FREQTRADE__BOT_NAME:-Example_Test_Account}_${FREQTRADE__EXCHANGE__NAME:-binance}_${FREQTRADE__TRADING_MODE:-spot}-tradesv3.sqlite --log-file /share/fqm_bot_nfix5/user_data/logs/${FREQTRADE__BOT_NAME:-Example_Test_Account}-${FREQTRADE__EXCHANGE__NAME:-binance}-${FREQTRADE__STRATEGY:-NostalgiaForInfinityX5}-${FREQTRADE__TRADING_MODE:-spot}.log \ No newline at end of file