chandan06 commited on
Commit
efa2743
·
verified ·
1 Parent(s): 61a17bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -8
Dockerfile CHANGED
@@ -16,16 +16,23 @@ 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
 
 
 
 
 
 
 
20
  # Copy the rest of the application codeDocQA
21
- COPY images ./images
22
- COPY app.py ./
23
- COPY ./classification.py ./
24
- COPY donut_inference.py ./
25
- COPY non_form_llama_parse.py ./
26
- COPY RAG.py ./
27
- COPY best_resnet152_model.h5 ./
28
- COPY Model ./Model
29
 
30
  # Expose the port the app runs on
31
  # EXPOSE 7860
 
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
30
+ COPY --chown=user ./classification.py $HOME/app
31
+ COPY --chown=user donut_inference.py $HOME/app
32
+ COPY --chown=user non_form_llama_parse.py $HOME/app
33
+ COPY --chown=user RAG.py $HOME/app
34
+ COPY --chown=user best_resnet152_model.h5 $HOME/app
35
+ COPY --chown=user Model $HOME/app
36
 
37
  # Expose the port the app runs on
38
  # EXPOSE 7860