Jagrut Thakare commited on
Commit
ed87c84
·
1 Parent(s): 4e8a5a6
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -25,6 +25,9 @@ WORKDIR /home/user/app
25
 
26
  # Copy files and install only Gradio
27
  COPY --chown=user:user . /home/user/app
 
 
 
28
  RUN pip install --user --no-cache-dir --upgrade pip
29
  RUN pip install --user pydantic==2.8.2 gradio
30
  RUN pip cache purge
@@ -32,7 +35,7 @@ RUN pip cache purge
32
  RUN pip install --user torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu113
33
  RUN python3 -m pip cache purge
34
 
35
- RUN pip install --user --no-cache-dir mxnet-cu112 onnxruntime-gpu==1.12 Cython requests==2.25.1 insightface==0.2.1 kornia==0.5.4 numpy<=2.0 dill opencv-python onnx scikit-image wandb
36
  RUN python3 -m pip cache purge
37
 
38
  COPY --chown=user:user . .
 
25
 
26
  # Copy files and install only Gradio
27
  COPY --chown=user:user . /home/user/app
28
+
29
+ RUN rm -rf ~/.cache
30
+
31
  RUN pip install --user --no-cache-dir --upgrade pip
32
  RUN pip install --user pydantic==2.8.2 gradio
33
  RUN pip cache purge
 
35
  RUN pip install --user torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu113
36
  RUN python3 -m pip cache purge
37
 
38
+ RUN pip install --user --no-cache-dir mxnet-cu112 onnxruntime-gpu==1.12 Cython requests==2.25.1 insightface==0.2.1 kornia==0.5.4 "numpy<=2.0" dill opencv-python onnx scikit-image wandb
39
  RUN python3 -m pip cache purge
40
 
41
  COPY --chown=user:user . .