Spaces:
Sleeping
Sleeping
Updated secret management
Browse files- 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
|
| 10 |
RUN --mount=type=secret,id=GROQ_API_KEY,mode=0444,required=true \
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
| 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
|