Spaces:
Sleeping
Sleeping
Kumar Shubham commited on
Commit ·
66d0c18
1
Parent(s): 01af663
Fix dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -16,7 +16,7 @@ WORKDIR /app
|
|
| 16 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 18 |
|
| 19 |
-
Mount and store the GEMINI_API_KEY secret at build time
|
| 20 |
RUN --mount=type=secret,id=GEMINI_API_KEY,mode=0444,required=true \
|
| 21 |
cat /run/secrets/GEMINI_API_KEY > /home/user/secrets/gemini_key && \
|
| 22 |
echo "GEMINI_API_KEY=$(cat /home/user/secrets/gemini_key)" > /app/.env
|
|
|
|
| 16 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 18 |
|
| 19 |
+
# Mount and store the GEMINI_API_KEY secret at build time
|
| 20 |
RUN --mount=type=secret,id=GEMINI_API_KEY,mode=0444,required=true \
|
| 21 |
cat /run/secrets/GEMINI_API_KEY > /home/user/secrets/gemini_key && \
|
| 22 |
echo "GEMINI_API_KEY=$(cat /home/user/secrets/gemini_key)" > /app/.env
|