nikhilkomakula commited on
Commit
a10b333
·
1 Parent(s): 818b860

Dockerfile Update v1.1

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -16,7 +16,7 @@ RUN apt-get update && \
16
  apt-get install -y git-lfs
17
 
18
  # Clone Git Repo
19
- RUN git clone --no-checkout --depth 1 https://huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot
20
 
21
  # Set up a new user named "user" with user ID 1000
22
  RUN useradd -m -u 1000 user
@@ -36,9 +36,11 @@ COPY --chown=user app.py $HOME/app
36
  COPY --chown=user src $HOME/app/src
37
  COPY --chown=user indexes $HOME/app/indexes
38
 
39
- # Copy git lfs files
40
- RUN cd $HOME/app/indexes && git lfs pull -I "indexes/chroma.sqlite3"
41
- RUN cd $HOME/app/indexes/c607d7bb-5476-4bdc-8df3-36895a74111c && git lfs pull -I "indexes/c607d7bb-5476-4bdc-8df3-36895a74111c/data_level0.bin"
 
 
42
 
43
  # Use ENTRYPOINT to specify the command to run when the container starts
44
  ENTRYPOINT ["python", "app.py"]
 
16
  apt-get install -y git-lfs
17
 
18
  # Clone Git Repo
19
+ RUN git clone --depth 1 https://huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot /code/llm-rag-op-chatbot
20
 
21
  # Set up a new user named "user" with user ID 1000
22
  RUN useradd -m -u 1000 user
 
36
  COPY --chown=user src $HOME/app/src
37
  COPY --chown=user indexes $HOME/app/indexes
38
 
39
+ # Copy git lfs files and pull them
40
+ RUN cd /code/llm-rag-op-chatbot/indexes && \
41
+ git lfs pull -I "indexes/chroma.sqlite3" && \
42
+ cd c607d7bb-5476-4bdc-8df3-36895a74111c && \
43
+ git lfs pull -I "indexes/c607d7bb-5476-4bdc-8df3-36895a74111c/data_level0.bin"
44
 
45
  # Use ENTRYPOINT to specify the command to run when the container starts
46
  ENTRYPOINT ["python", "app.py"]