arnel8888 commited on
Commit
2b6cbf6
·
verified ·
1 Parent(s): a13fe0d

Updated secret management

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -6,15 +6,13 @@ RUN apt-get update && apt-get install -y \
6
  git \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
- # Expose the secret GROQ_API_KEY at buildtime and use its value as git remote URL
10
  RUN --mount=type=secret,id=GROQ_API_KEY,mode=0444,required=true \
11
- git init && \
12
- git remote add origin $(cat /run/secrets/GROQ_API_KEY)
 
 
13
 
14
- # # Expose the secret TAVILY_API_KEY at buildtime and use its value as git remote URL
15
- # RUN --mount=type=secret,id=TAVILY_API_KEY,mode=0444,required=true \
16
- # git init && \
17
- # git remote add origin $(cat /run/secrets/TAVILY_API_KEY)
18
 
19
  # Set the working directory
20
  WORKDIR /app
 
6
  git \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
+ # Expose Groq and Tavily API keys at build time
10
  RUN --mount=type=secret,id=GROQ_API_KEY,mode=0444,required=true \
11
+ --mount=type=secret,id=TAVILY_API_KEY,mode=0444,required=true \
12
+ git init && \
13
+ git remote add origin-groq $(cat /run/secrets/GROQ_API_KEY) && \
14
+ git remote add origin-tavily $(cat /run/secrets/TAVILY_API_KEY)
15
 
 
 
 
 
16
 
17
  # Set the working directory
18
  WORKDIR /app