AXZ91 commited on
Commit
eba7bcf
·
1 Parent(s): 3100280

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -19,9 +19,10 @@ WORKDIR $HOME/app
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
 
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
+
23
+ # Get secret SECRET_EXAMPLE and clone it as repo at buildtime
24
  RUN --mount=type=secret,id=open_ai,mode=0444,required=true \
25
+ git clone $(cat /run/secrets/open_ai)
 
26
 
27
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
28
  COPY --chown=user . $HOME/app