Fred808 commited on
Commit
3f18d08
·
verified ·
1 Parent(s): b638bf6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,9 +1,12 @@
1
  FROM nvidia/cuda:12.2.0-cudnn8-runtime-ubuntu22.04
2
 
3
- RUN apt update && apt install -y python3-pip git
4
- RUN pip3 install torch transformers fastapi uvicorn pillow
5
 
6
- COPY . /app
7
  WORKDIR /app
 
 
 
8
 
9
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]
 
1
  FROM nvidia/cuda:12.2.0-cudnn8-runtime-ubuntu22.04
2
 
3
+ RUN apt-get update && apt-get install -y python3 python3-pip git && \
4
+ pip3 install --upgrade pip
5
 
6
+ COPY requirements.txt /app/requirements.txt
7
  WORKDIR /app
8
+ RUN pip3 install -r requirements.txt
9
+
10
+ COPY . /app
11
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]