eligapris commited on
Commit
ef862b4
·
verified ·
1 Parent(s): 50a04f5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -19,15 +19,10 @@ RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
19
  # Set working directory
20
  WORKDIR /app
21
 
22
- # Install dependencies in correct order to avoid conflicts
23
  RUN pip install --upgrade pip
24
- RUN pip install "numpy==1.21.6"
25
- RUN pip install "Cython<3.0"
26
-
27
- # Set environment variables for TA-Lib compilation
28
- ENV TALIB_INCLUDE_DIR=/usr/include/ta-lib
29
- ENV TALIB_LIBRARY_DIR=/usr/lib
30
- RUN pip install "TA-Lib==0.4.25"
31
 
32
  # Install other dependencies
33
  RUN pip install fastapi==0.104.1 uvicorn[standard]==0.24.0 pydantic==2.5.0 yfinance==0.2.28 requests==2.31.0
@@ -36,7 +31,7 @@ RUN pip install fastapi==0.104.1 uvicorn[standard]==0.24.0 pydantic==2.5.0 yfina
36
  COPY . .
37
 
38
  # Expose port
39
- EXPOSE 8000
40
 
41
  # Run the application
42
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
 
19
  # Set working directory
20
  WORKDIR /app
21
 
22
+ # Install dependencies in the correct order for compatibility
23
  RUN pip install --upgrade pip
24
+ RUN pip install "numpy>=2.0.0"
25
+ RUN pip install "TA-Lib>=0.5.0"
 
 
 
 
 
26
 
27
  # Install other dependencies
28
  RUN pip install fastapi==0.104.1 uvicorn[standard]==0.24.0 pydantic==2.5.0 yfinance==0.2.28 requests==2.31.0
 
31
  COPY . .
32
 
33
  # Expose port
34
+ EXPOSE 7680
35
 
36
  # Run the application
37
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7680", "--reload"]