chandan06 commited on
Commit
ef31b6d
1 Parent(s): a56bb1c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
 
2
- FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04
3
 
4
  # Set the working directory in the container
5
  WORKDIR /DocQA
@@ -21,7 +21,7 @@ RUN useradd -m -u 1000 user
21
  # Switch to the new user
22
  USER user
23
  ENV HOME=/home/user
24
- ENV PATH=/home/user/.local/bin:$PATH
25
 
26
  # Set the working directory for the application
27
  WORKDIR $HOME/app
@@ -30,7 +30,7 @@ WORKDIR $HOME/app
30
  COPY --chown=user requirements.txt $HOME/app/
31
  RUN pip install --no-cache-dir -r requirements.txt
32
  RUN pip uninstall --y faiss-cpu & pip install faiss-gpu
33
- RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
34
 
35
  # Copy the rest of the application's code to the container
36
  COPY --chown=user . $HOME/app
 
1
 
2
+ FROM nvidia/cuda:12.4.1-devel-ubuntu22.04
3
 
4
  # Set the working directory in the container
5
  WORKDIR /DocQA
 
21
  # Switch to the new user
22
  USER user
23
  ENV HOME=/home/user
24
+ ENV PATH=/home/user/.local/bin:/usr/local/cuda/bin:$PATH
25
 
26
  # Set the working directory for the application
27
  WORKDIR $HOME/app
 
30
  COPY --chown=user requirements.txt $HOME/app/
31
  RUN pip install --no-cache-dir -r requirements.txt
32
  RUN pip uninstall --y faiss-cpu & pip install faiss-gpu
33
+ RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124
34
 
35
  # Copy the rest of the application's code to the container
36
  COPY --chown=user . $HOME/app