Thibault Goehringer
commited on
Commit
·
a19e447
1
Parent(s):
5ec3cb6
Remove git clone secret
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -13,7 +13,7 @@ RUN --mount=type=secret,id=openai_api_key,mode=0444,required=true \
|
|
13 |
cat /run/secrets/openai_api_key > /test
|
14 |
|
15 |
# Get secret openai_api_key and clone it as repo at buildtime
|
16 |
-
RUN --mount=type=secret,id=openai_api_key,mode=0444,required=true \
|
17 |
-
git clone $(cat /run/secrets/openai_api_key)
|
18 |
|
19 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
13 |
cat /run/secrets/openai_api_key > /test
|
14 |
|
15 |
# Get secret openai_api_key and clone it as repo at buildtime
|
16 |
+
#RUN --mount=type=secret,id=openai_api_key,mode=0444,required=true \
|
17 |
+
# git clone $(cat /run/secrets/openai_api_key)
|
18 |
|
19 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|