anfastech commited on
Commit
0f2f220
·
1 Parent(s): 81fffe0

Initial test commit #5

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -13,10 +13,11 @@ RUN apt-get update && apt-get install -y \
13
  # Copy requirements first to leverage Docker cache
14
  COPY requirements.txt .
15
 
16
- # Install PyTorch and torchaudio first (CPU version)
17
- # Install the rest of requirements
18
- RUN pip install --no-cache-dir torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu121
19
 
 
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
  # Copy application files
@@ -27,4 +28,4 @@ EXPOSE 7860
27
  ENV PYTHONUNBUFFERED=1
28
 
29
  # Run the application
30
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  # Copy requirements first to leverage Docker cache
14
  COPY requirements.txt .
15
 
16
+ # Install PyTorch and torchaudio (use available version for cu121)
17
+ # Using 2.5.1 which is the latest stable for cu121
18
+ RUN pip install --no-cache-dir torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
19
 
20
+ # Install the rest of requirements
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
  # Copy application files
 
28
  ENV PYTHONUNBUFFERED=1
29
 
30
  # Run the application
31
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]