update dockerfile
This commit is contained in:
		@@ -17,7 +17,7 @@ ARG BUILD_VERSION
 | 
				
			|||||||
COPY rootfs /
 | 
					COPY rootfs /
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install necessary dependencies
 | 
					# 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
 | 
					# Set the working directory
 | 
				
			||||||
WORKDIR /freq
 | 
					WORKDIR /freq
 | 
				
			||||||
@@ -28,17 +28,24 @@ RUN git clone https://github.com/freqtrade/freqtrade.git /freq
 | 
				
			|||||||
ARG FREQTRADE_BRANCH=stable
 | 
					ARG FREQTRADE_BRANCH=stable
 | 
				
			||||||
RUN git checkout ${FREQTRADE_BRANCH}
 | 
					RUN git checkout ${FREQTRADE_BRANCH}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Make setup script executable
 | 
					# Install Ta-lib
 | 
				
			||||||
RUN chmod +x ./setup.sh
 | 
					RUN chmod +x ./build_helpers/install_ta-lib.sh
 | 
				
			||||||
 | 
					RUN ./build_helpers/install_ta-lib.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Run the setup script to install dependencies
 | 
					RUN python3 -m venv .venv
 | 
				
			||||||
RUN ./setup.sh -i
 | 
					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)
 | 
					# Activate the virtual environment (implicitly handled in entrypoint or CMD)
 | 
				
			||||||
RUN echo "source /freq/.venv/bin/activate" >> ~/.bashrc
 | 
					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/*
 | 
					RUN chmod +x /etc/s6-overlay/s6-rc.d/fqmbotnfix5/*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user