eligapris commited on
Commit
190e213
·
verified ·
1 Parent(s): 70205dc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -6
Dockerfile CHANGED
@@ -16,14 +16,20 @@ RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
16
  cd .. && \
17
  rm -rf ta-lib ta-lib-0.4.0-src.tar.gz
18
 
19
- # Install Python TA-Lib
20
- RUN pip install TA-Lib
21
-
22
- # Copy your application
23
- COPY . /app
24
  WORKDIR /app
25
 
 
 
 
 
 
 
 
 
26
 
 
27
  EXPOSE 7680
28
 
29
- CMD ["python3", "uv", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7680"]
 
 
16
  cd .. && \
17
  rm -rf ta-lib ta-lib-0.4.0-src.tar.gz
18
 
19
+ # Set working directory
 
 
 
 
20
  WORKDIR /app
21
 
22
+ # Copy requirements first for better caching
23
+ COPY requirements.txt .
24
+
25
+ # Install Python dependencies
26
+ RUN pip install --no-cache-dir -r requirements.txt
27
+
28
+ # Copy application code
29
+ COPY . .
30
 
31
+ # Expose port
32
  EXPOSE 7680
33
 
34
+ # Run the application
35
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7680", "--reload"]