From 8165bb2bebd2e2465ff2e67add75093f474035e1 Mon Sep 17 00:00:00 2001 From: ai-dev Date: Thu, 16 Jan 2025 01:05:03 +0100 Subject: [PATCH] update dockerfile --- freqtrade-NFIx5/Dockerfile | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/freqtrade-NFIx5/Dockerfile b/freqtrade-NFIx5/Dockerfile index f471176..c150870 100644 --- a/freqtrade-NFIx5/Dockerfile +++ b/freqtrade-NFIx5/Dockerfile @@ -17,7 +17,7 @@ ARG BUILD_VERSION COPY rootfs / # Install necessary dependencies -RUN apk add --no-cache git python3 py3-pip curl +RUN apk add --no-cache gcc g++ make musl-dev linux-headers git python3 py3-pip curl # Set the working directory WORKDIR /freq @@ -28,17 +28,24 @@ RUN git clone https://github.com/freqtrade/freqtrade.git /freq ARG FREQTRADE_BRANCH=stable RUN git checkout ${FREQTRADE_BRANCH} -# Make setup script executable -RUN chmod +x ./setup.sh +# Install Ta-lib +RUN chmod +x ./build_helpers/install_ta-lib.sh +RUN ./build_helpers/install_ta-lib.sh -# Run the setup script to install dependencies -RUN ./setup.sh -i +RUN python3 -m venv .venv +RUN source /freq/.venv/bin/activate + +RUN python3 -m pip install --upgrade pip +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 /freq/.venv/bin/activate" >> ~/.bashrc -RUN source /freq/.venv/bin/activate -RUN pip install --upgrade pip && pip install --user --no-cache-dir --no-build-isolation -r /freqtrade/tests/requirements.txt + +RUN pip install --user --no-cache-dir --no-build-isolation -r /freqtrade/tests/requirements.txt RUN chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/*