chandan06 commited on
Commit
7e7a852
·
verified ·
1 Parent(s): 12e34b0

Update Dockerfile

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