This commit is contained in:
ai-dev 2025-01-17 00:13:08 +01:00
parent 8ebeffb14c
commit 6353046ddd
2 changed files with 4 additions and 3 deletions

View File

@ -105,9 +105,6 @@ RUN python3 -m pip install -e .
# Activate the virtual environment (implicitly handled in entrypoint or CMD) # Activate the virtual environment (implicitly handled in entrypoint or CMD)
RUN echo "source /freqtrade/.venv/bin/activate" >> ~/.bashrc 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/* RUN chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/*
# Labels # Labels

View File

@ -53,4 +53,8 @@ export "FREQTRADE__STRATEGY=$(bashio::config 'strategy')"
bashio::log.info "starting the bot ..." 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 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