saniaE commited on
Commit
38bcc67
·
1 Parent(s): 4c909c8

updated package versions

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -2
  2. requirements.txt +4 -6
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM nvcr.io/nvidia/tensorflow:20.12-tf1-py3
2
 
3
  USER root
4
 
5
- # Fix GPG Keys for expired NVIDIA repositories and install system libs
6
  RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub \
7
  && apt-get update && apt-get install -y \
8
  libgl1-mesa-glx \
@@ -10,7 +10,7 @@ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/
10
  python3-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Upgrade pip to a version compatible with Python 3.7
14
  RUN pip install --no-cache-dir --upgrade "pip<23.0"
15
 
16
  # Set up user
@@ -19,9 +19,11 @@ ENV HOME=/home/user \
19
  PATH=/home/user/.local/bin:$PATH
20
  WORKDIR $HOME/app
21
 
 
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
 
25
  COPY --chown=user:user . .
26
 
27
  USER user
 
2
 
3
  USER root
4
 
5
+ # Fix GPG Keys and install system libs
6
  RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub \
7
  && apt-get update && apt-get install -y \
8
  libgl1-mesa-glx \
 
10
  python3-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Upgrade pip but keep it compatible with Python 3.7
14
  RUN pip install --no-cache-dir --upgrade "pip<23.0"
15
 
16
  # Set up user
 
19
  PATH=/home/user/.local/bin:$PATH
20
  WORKDIR $HOME/app
21
 
22
+ # Install requirements
23
  COPY requirements.txt .
24
  RUN pip install --no-cache-dir -r requirements.txt
25
 
26
+ # Copy app code
27
  COPY --chown=user:user . .
28
 
29
  USER user
requirements.txt CHANGED
@@ -22,16 +22,14 @@ uvicorn
22
  python-multipart
23
  huggingface-hub
24
  pandas==1.3.5
25
- numpy==1.19.5
26
  matplotlib==3.5.3
27
  scikit-image==0.19.3
28
- opencv-python==4.5.5.64
29
  h5py==2.10.0
30
- keras==2.2.4
31
- tensorflow-gpu==1.15.0
32
  Keras-applications==1.0.7
33
- protobuf==3.19.6
34
  seaborn==0.12.2
35
  scikit-learn==1.0.2
36
- scipy==1.7.3
37
  Pillow==9.5.0
 
22
  python-multipart
23
  huggingface-hub
24
  pandas==1.3.5
25
+ numpy==1.19.5
26
  matplotlib==3.5.3
27
  scikit-image==0.19.3
28
+ opencv-python-headless==4.5.5.64
29
  h5py==2.10.0
 
 
30
  Keras-applications==1.0.7
31
+ protobuf==3.19.6
32
  seaborn==0.12.2
33
  scikit-learn==1.0.2
34
+ scipy==1.7.3
35
  Pillow==9.5.0