tomer9080 commited on
Commit
a065c70
·
1 Parent(s): 96590b1

torch last

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -35,6 +35,12 @@ WORKDIR $HOME/app
35
  # Upgrade pip
36
  RUN python -m pip install --no-cache-dir --upgrade pip
37
 
 
 
 
 
 
 
38
  # Install PyTorch with CUDA support first
39
  RUN pip install --no-cache-dir \
40
  torch==2.0.1+cu118 \
@@ -42,12 +48,6 @@ RUN pip install --no-cache-dir \
42
  torchaudio==2.0.2+cu118 \
43
  -f https://download.pytorch.org/whl/torch_stable.html
44
 
45
- # Copy requirements file
46
- COPY --chown=user requirements.txt .
47
-
48
- # Install other Python dependencies
49
- RUN pip install --no-cache-dir -r requirements.txt
50
-
51
  # Copy the application code
52
  COPY --chown=user . .
53
 
 
35
  # Upgrade pip
36
  RUN python -m pip install --no-cache-dir --upgrade pip
37
 
38
+ # Copy requirements file
39
+ COPY --chown=user requirements.txt .
40
+
41
+ # Install other Python dependencies
42
+ RUN pip install --no-cache-dir -r requirements.txt
43
+
44
  # Install PyTorch with CUDA support first
45
  RUN pip install --no-cache-dir \
46
  torch==2.0.1+cu118 \
 
48
  torchaudio==2.0.2+cu118 \
49
  -f https://download.pytorch.org/whl/torch_stable.html
50
 
 
 
 
 
 
 
51
  # Copy the application code
52
  COPY --chown=user . .
53