3v324v23 commited on
Commit
8154f8b
1 Parent(s): dc45862
Files changed (2) hide show
  1. Dockerfile +6 -5
  2. requirements.txt +0 -2
Dockerfile CHANGED
@@ -27,12 +27,13 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
27
  # RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
28
  RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
29
 
30
- COPY requirements.txt /tmp
31
- RUN cd /tmp && pip install --no-cache-dir --upgrade -r requirements.txt
32
 
33
- COPY . .
34
- RUN ls
35
- RUN ls /home/${USER_NAME}
 
 
 
36
 
37
  # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
38
  CMD ["python", "app.py"]
 
27
  # RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
28
  RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
29
 
 
 
30
 
31
+ COPY . /home/${USER_NAME}
32
+ WORKDIR /home/${USER_NAME}/
33
+ RUN pip install -r requirements/minimal.txt -f https://download.pytorch.org/whl/cu118/torch_stable.html
34
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
35
+
36
+
37
 
38
  # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
39
  CMD ["python", "app.py"]
requirements.txt CHANGED
@@ -1,5 +1,3 @@
1
  einops
2
  imageio
3
  gradio
4
- easydict
5
- scipy
 
1
  einops
2
  imageio
3
  gradio