101Frost commited on
Commit
8ab5e4c
·
verified ·
1 Parent(s): e50716a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -12,19 +12,13 @@ RUN apt-get update && apt-get install -y \
12
  # Copy requirements first (for better Docker layer caching)
13
  COPY requirements.txt .
14
 
15
- # Install PyTorch first to avoid conflicts
16
- RUN pip install --no-cache-dir torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu
17
-
18
- RUN pip install pip-tools
19
- RUN pip-compile requirements.txt
20
- RUN pip install -r requirements.txt
21
 
22
  # Clone and install MobileCLIP
23
  RUN git clone https://github.com/apple/ml-mobileclip.git && \
24
  cd ml-mobileclip && \
25
- pip install -e . && \
26
  cd .. && \
27
- rm -rf ml-mobileclip/.git
28
 
29
  # Copy application code
30
  COPY app.py .
 
12
  # Copy requirements first (for better Docker layer caching)
13
  COPY requirements.txt .
14
 
15
+ # Install other Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
17
 
18
  # Clone and install MobileCLIP
19
  RUN git clone https://github.com/apple/ml-mobileclip.git && \
20
  cd ml-mobileclip && \
 
21
  cd .. && \
 
22
 
23
  # Copy application code
24
  COPY app.py .