AXZ91 commited on
Commit
2edca35
·
1 Parent(s): 567ac95

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -18,6 +18,10 @@ WORKDIR $HOME/app
18
  # Install required packages
19
  RUN pip install openai llama_index chainlit python-dotenv vecs nltk deeplake transformers lancedb chromadb
20
 
 
 
 
 
21
 
22
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
23
  COPY --chown=user . $HOME/app
 
18
  # Install required packages
19
  RUN pip install openai llama_index chainlit python-dotenv vecs nltk deeplake transformers lancedb chromadb
20
 
21
+ # Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
22
+ RUN --mount=type=secret,id=open_ai,mode=0444,required=true \
23
+ git init && \
24
+ git remote add origin $(cat /run/secrets/open_ai)
25
 
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
  COPY --chown=user . $HOME/app