Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -18,7 +18,14 @@ RUN --mount=type=secret,id=FB_SECRET,mode=0444,required=true \
|
|
| 18 |
|
| 19 |
RUN --mount=type=secret,id=OPENAI_KEY,mode=0444,required=true \
|
| 20 |
cat /run/secrets/OPENAI_KEY > /app/secrets/openai_key.txt
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
COPY . .
|
| 23 |
|
| 24 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 18 |
|
| 19 |
RUN --mount=type=secret,id=OPENAI_KEY,mode=0444,required=true \
|
| 20 |
cat /run/secrets/OPENAI_KEY > /app/secrets/openai_key.txt
|
| 21 |
+
|
| 22 |
+
RUN --mount=type=secret,id=GEMINI_KEY,mode=0444,required=true \
|
| 23 |
+
cat /run/secrets/GEMINI_KEY > /app/secrets/gemini_key.txt
|
| 24 |
+
|
| 25 |
+
# Set the GOOGLE_APPLICATION_CREDENTIALS environment variable
|
| 26 |
+
ENV GOOGLE_APPLICATION_CREDENTIALS="/app/secrets/googleapi_secret.json"
|
| 27 |
+
|
| 28 |
+
|
| 29 |
COPY . .
|
| 30 |
|
| 31 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|