saniaE commited on
Commit
4c909c8
·
1 Parent(s): 139a10f

updated package versions

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -8
  2. requirements.txt +16 -18
Dockerfile CHANGED
@@ -1,16 +1,17 @@
1
- FROM nvcr.io/nvidia/tensorflow:20.01-tf1-py3
2
 
3
  USER root
4
 
5
- # Fix GPG Keys and install system libs
6
- RUN apt-get update && apt-get install -y \
 
7
  libgl1-mesa-glx \
8
  libglib2.0-0 \
9
  python3-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- # Upgrade pip
13
- RUN pip install --no-cache-dir --upgrade pip
14
 
15
  # Set up user
16
  RUN useradd -m -u 1000 user
@@ -18,11 +19,9 @@ ENV HOME=/home/user \
18
  PATH=/home/user/.local/bin:$PATH
19
  WORKDIR $HOME/app
20
 
21
- # Install requirements
22
  COPY requirements.txt .
23
- RUN pip install --no-cache-dir --ignore-installed -r requirements.txt
24
 
25
- # Copy app code
26
  COPY --chown=user:user . .
27
 
28
  USER user
 
1
+ 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 \
9
  libglib2.0-0 \
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
17
  RUN useradd -m -u 1000 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
requirements.txt CHANGED
@@ -2,38 +2,36 @@
2
  # uvicorn
3
  # python-multipart
4
  # huggingface-hub
5
- # numpy==1.19.5
6
  # pandas==1.3.5
 
7
  # matplotlib==3.5.3
8
- # scikit-image==0.16.2
9
- # opencv-python-headless==4.5.5.64
10
  # h5py==2.10.0
11
- # keras==2.2.4
12
  # tensorflow-gpu==1.15.0
13
  # Keras-applications==1.0.7
14
  # protobuf==3.20.3
15
  # seaborn==0.12.2
16
  # scikit-learn==1.0.2
17
- # scipy==1.7.3
18
  # Pillow==9.5.0
19
 
20
  fastapi
21
  uvicorn
22
  python-multipart
23
  huggingface-hub
24
- numpy==1.19.5
25
- pandas==1.1.5
26
- matplotlib==3.3.4
27
- kiwisolver==1.3.1
28
- pyparsing==2.4.7
29
- scikit-image==0.17.2
30
- opencv-python-headless==4.5.5.64
31
  h5py==2.10.0
32
- keras==2.2.4
33
  tensorflow-gpu==1.15.0
34
  Keras-applications==1.0.7
35
- protobuf==3.19.0
36
- seaborn==0.11.2
37
- scikit-learn==0.24.2
38
- scipy==1.4.1
39
- Pillow==8.4.0
 
2
  # uvicorn
3
  # python-multipart
4
  # huggingface-hub
 
5
  # pandas==1.3.5
6
+ # numpy==1.24.3
7
  # matplotlib==3.5.3
8
+ # scikit-image==0.19.3
9
+ # opencv-python==4.10.0.84
10
  # h5py==2.10.0
11
+ # keras==2.2.0
12
  # tensorflow-gpu==1.15.0
13
  # Keras-applications==1.0.7
14
  # protobuf==3.20.3
15
  # seaborn==0.12.2
16
  # scikit-learn==1.0.2
17
+ # scipy==1.10.1
18
  # Pillow==9.5.0
19
 
20
  fastapi
21
  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