chandan06 commited on
Commit
feaa33a
1 Parent(s): 7e7a852

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -3,6 +3,15 @@ FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04
3
 
4
  # Set the working directory
5
  WORKDIR /DocQA
 
 
 
 
 
 
 
 
 
6
  RUN useradd -m -u 1000 user
7
 
8
  USER user
@@ -14,15 +23,7 @@ WORKDIR $HOME/app
14
  # Copy the requirements.txt file
15
  COPY --chown=user requirements.txt $HOME/app
16
 
17
- # Install dependencies
18
- RUN apt-get update && apt-get install -y \
19
- git \
20
- python3.10 \
21
- python3-pip \
22
- && apt-get clean
23
- RUN apt-get install poppler-utils -y
24
  RUN pip install --no-cache-dir -r requirements.txt
25
- RUN pip3 install torch --index-url https://download.pytorch.org/whl/cu121
26
 
27
  # Copy the rest of the application codeDocQA
28
  COPY --chown=user images $HOME/app
 
3
 
4
  # Set the working directory
5
  WORKDIR /DocQA
6
+ # Install dependencies
7
+ RUN apt-get update && apt-get install -y \
8
+ git \
9
+ python3.10 \
10
+ python3-pip \
11
+ && apt-get clean
12
+ RUN apt-get install poppler-utils -y
13
+
14
+ RUN pip3 install torch --index-url https://download.pytorch.org/whl/cu121
15
  RUN useradd -m -u 1000 user
16
 
17
  USER user
 
23
  # Copy the requirements.txt file
24
  COPY --chown=user requirements.txt $HOME/app
25
 
 
 
 
 
 
 
 
26
  RUN pip install --no-cache-dir -r requirements.txt
 
27
 
28
  # Copy the rest of the application codeDocQA
29
  COPY --chown=user images $HOME/app