vishalsh13 commited on
Commit
83a3988
·
1 Parent(s): fe0000f

update docker

Browse files
Files changed (2) hide show
  1. Dockerfile +10 -3
  2. requirements.txt +10 -10
Dockerfile CHANGED
@@ -1,15 +1,22 @@
1
- # CUDA-enabled base image
2
  FROM nvidia/cuda:11.8.0-base-ubuntu20.04
3
 
4
  # Set environment variables
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV PYTHONUNBUFFERED=1
7
 
8
- # Install required system packages
9
  RUN apt-get update && apt-get install -y \
10
- python3 python3-pip git wget unzip && \
11
  rm -rf /var/lib/apt/lists/*
12
 
 
 
 
 
 
 
 
13
  # Set the working directory
14
  WORKDIR /app
15
 
 
1
+ # CUDA-enabled base image with Python 3.11 support
2
  FROM nvidia/cuda:11.8.0-base-ubuntu20.04
3
 
4
  # Set environment variables
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV PYTHONUNBUFFERED=1
7
 
8
+ # Install required system packages and Python 3.11
9
  RUN apt-get update && apt-get install -y \
10
+ python3.11 python3.11-distutils python3.11-dev python3-pip git wget unzip && \
11
  rm -rf /var/lib/apt/lists/*
12
 
13
+ # Update alternatives to ensure Python 3.11 is the default
14
+ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && \
15
+ update-alternatives --config python3
16
+
17
+ # Upgrade pip to the latest version
18
+ RUN python3 -m pip install --upgrade pip
19
+
20
  # Set the working directory
21
  WORKDIR /app
22
 
requirements.txt CHANGED
@@ -1,11 +1,11 @@
1
- Flask==2.3.2
2
- transformers==4.27.4
3
- sentence-transformers==2.2.2
4
- torch==2.0.1
5
- torchvision==0.15.2
6
- faiss-gpu==1.7.2
7
- PyMuPDF==1.22.5
8
- python-pptx==0.6.21
9
- pandas==1.5.3
10
- numpy==1.24.2
11
  #huggingface-hub==0.15.1 # Ensure compatibility
 
1
+ Flask
2
+ transformers
3
+ sentence-transformers
4
+ torch
5
+ torchvision
6
+ faiss-cpu
7
+ PyMuPDF
8
+ python-pptx
9
+ pandas
10
+ numpy
11
  #huggingface-hub==0.15.1 # Ensure compatibility