anfastech commited on
Commit
01f64d6
·
1 Parent(s): ff2a5ca

fix: resolve torch security error by pinning torch 2.6.0 and updating requirements #1

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -25
Dockerfile CHANGED
@@ -2,11 +2,7 @@ FROM python:3.10
2
 
3
  WORKDIR /app
4
 
5
- <<<<<<< HEAD
6
  # Install system dependencies
7
- =======
8
- # System dependencies
9
- >>>>>>> 227215dfee69429b8c29a7f223741c6077757662
10
  RUN apt-get update && apt-get install -y \
11
  libffi-dev \
12
  libsndfile1 \
@@ -14,7 +10,6 @@ RUN apt-get update && apt-get install -y \
14
  libxt6 \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- <<<<<<< HEAD
18
  # Copy requirements first to leverage Docker cache
19
  COPY requirements.txt .
20
 
@@ -33,23 +28,3 @@ ENV PYTHONUNBUFFERED=1
33
 
34
  # Run the application
35
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
36
- =======
37
- # Copy requirements
38
- COPY requirements.txt .
39
-
40
- # Upgrade pip
41
- RUN python -m pip install --upgrade pip
42
-
43
- # Install all Python dependencies including torch
44
- RUN pip install --no-cache-dir \
45
- -r requirements.txt \
46
- -f https://download.pytorch.org/whl/cpu/torch_stable.html
47
-
48
- # Copy app code
49
- COPY . .
50
-
51
- EXPOSE 7860
52
- ENV PYTHONUNBUFFERED=1
53
-
54
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
55
- >>>>>>> 227215dfee69429b8c29a7f223741c6077757662
 
2
 
3
  WORKDIR /app
4
 
 
5
  # Install system dependencies
 
 
 
6
  RUN apt-get update && apt-get install -y \
7
  libffi-dev \
8
  libsndfile1 \
 
10
  libxt6 \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
13
  # Copy requirements first to leverage Docker cache
14
  COPY requirements.txt .
15
 
 
28
 
29
  # Run the application
30
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]