E-Hospital commited on
Commit
d97d89f
1 Parent(s): 1216821

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -2
Dockerfile CHANGED
@@ -1,7 +1,22 @@
1
- FROM python:3.10.12
2
 
3
  WORKDIR /code
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
@@ -17,4 +32,4 @@ WORKDIR $HOME/app
17
 
18
  COPY --chown=user . $HOME/app
19
 
20
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM nvidia/cuda:11.8.0-base-ubuntu22.04
2
 
3
  WORKDIR /code
4
 
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+
7
+ RUN apt update
8
+
9
+ RUN apt install software-properties-common -y
10
+
11
+ RUN add-apt-repository ppa:deadsnakes/ppa
12
+
13
+ RUN apt install -y python3.9 python3.9-distutils python3-pip
14
+
15
+ # Install pip 23.1.2
16
+ RUN python3.9 -m pip install pip==23.1.2
17
+
18
+ RUN apt-get install -y git-all
19
+
20
  COPY ./requirements.txt /code/requirements.txt
21
 
22
  RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
 
32
 
33
  COPY --chown=user . $HOME/app
34
 
35
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]