Compare commits
7 Commits
67ee3b1fdf
...
main
Author | SHA1 | Date | |
---|---|---|---|
f8ce15efbd | |||
855bc68d27 | |||
8931984de5 | |||
4feb1126d1 | |||
22a70359a1 | |||
fccfd6732b | |||
3b7b619dab |
@ -49,7 +49,9 @@ RUN apk add --no-cache \
|
||||
zstd-dev \
|
||||
curl-dev \
|
||||
boost-dev \
|
||||
re2-dev
|
||||
re2-dev \
|
||||
llvm-dev \
|
||||
libffi-dev
|
||||
|
||||
# Clone the Apache Arrow source code
|
||||
RUN git clone https://github.com/apache/arrow.git /arrow
|
||||
@ -78,9 +80,6 @@ RUN mkdir -p build && cd build && \
|
||||
# Cleanup Arrow source to reduce image size
|
||||
RUN rm -rf /arrow
|
||||
|
||||
# Upgrade pip to the latest version
|
||||
RUN pip install --upgrade pip setuptools wheel setuptools_scm cython
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /freqtrade
|
||||
|
||||
@ -96,15 +95,13 @@ WORKDIR /freqtrade
|
||||
RUN python3 -m venv .venv
|
||||
RUN echo "source /freqtrade/.venv/bin/activate" >> ~/.bashrc
|
||||
RUN source /freqtrade/.venv/bin/activate
|
||||
|
||||
# Upgrade pip to the latest version
|
||||
RUN pip install --upgrade pip setuptools wheel setuptools_scm cython
|
||||
RUN python3 -m pip install -r requirements.txt
|
||||
|
||||
# install freqtrade
|
||||
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 chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/*
|
||||
|
||||
# Labels
|
||||
|
@ -53,8 +53,13 @@ export "FREQTRADE__STRATEGY=$(bashio::config 'strategy')"
|
||||
|
||||
bashio::log.info "starting the bot ..."
|
||||
|
||||
source /freqtrade/.venv/bin/freqtrade
|
||||
source /freqtrade/.venv/bin/activate
|
||||
|
||||
pip install --user --no-cache-dir --no-build-isolation -r /share/fqm_bot_nfix5/tests/requirements.txt
|
||||
pip install --upgrade pip setuptools wheel setuptools_scm cython
|
||||
pip install --no-cache-dir -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
|
||||
source /freqtrade/.venv/bin/activate
|
||||
freqtrade install-ui
|
||||
cd /share/fqm_bot_nfix5
|
||||
|
||||
exec 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 --config /share/fqm_bot_nfix5/user_data/config.json
|
Reference in New Issue
Block a user