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/*