Spaces:
Build error
Build error
heikowagner
commited on
Commit
•
863a1d2
1
Parent(s):
4ab369f
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -8,8 +8,9 @@ COPY ./app .
|
|
8 |
RUN pip install -r requirements.txt
|
9 |
RUN ls -la
|
10 |
#RUN python load_docs.py
|
11 |
-
RUN --mount=type=secret,id=OPENAI_API_KEY
|
12 |
-
|
|
|
13 |
RUN python run.py
|
14 |
RUN mkdir /.cache
|
15 |
RUN chmod 777 /.cache
|
|
|
8 |
RUN pip install -r requirements.txt
|
9 |
RUN ls -la
|
10 |
#RUN python load_docs.py
|
11 |
+
RUN --mount=type=secret,id=OPENAI_API_KEY \
|
12 |
+
export OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY)
|
13 |
+
|
14 |
RUN python run.py
|
15 |
RUN mkdir /.cache
|
16 |
RUN chmod 777 /.cache
|