Spaces:
Runtime error
Runtime error
Damien Benveniste
commited on
Commit
·
2ecf368
1
Parent(s):
eefa215
changed docker
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -7,13 +7,12 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
7 |
WORKDIR /app
|
8 |
|
9 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
|
|
10 |
RUN --mount=type=secret,id=PINECONE_API_KEY,mode=0444,required=true \
|
11 |
-
|
12 |
-
git remote add origin $(cat /run/secrets/PINECONE_API_KEY)
|
13 |
|
14 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
15 |
-
|
16 |
-
git remote add origin $(cat /run/secrets/OPENAI_API_KEY)
|
17 |
|
18 |
COPY --chown=user ./requirements.txt requirements.txt
|
19 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
7 |
WORKDIR /app
|
8 |
|
9 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
10 |
+
|
11 |
RUN --mount=type=secret,id=PINECONE_API_KEY,mode=0444,required=true \
|
12 |
+
cat /run/secrets/PINECONE_API_KEY > /test
|
|
|
13 |
|
14 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
15 |
+
cat /run/secrets/OPENAI_API_KEY > /test
|
|
|
16 |
|
17 |
COPY --chown=user ./requirements.txt requirements.txt
|
18 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|