Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -24,7 +24,8 @@ RUN chmod -R 777 ./flashcards
|
|
24 |
|
25 |
RUN cd ./flashcards
|
26 |
WORKDIR /code/flashcards
|
27 |
-
RUN
|
|
|
28 |
|
29 |
# アプリケーションの起動
|
30 |
CMD ["python3", "app.py"]
|
|
|
24 |
|
25 |
RUN cd ./flashcards
|
26 |
WORKDIR /code/flashcards
|
27 |
+
RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true \
|
28 |
+
echo "GEMINI_API_KEY=$(cat /run/secrets/GEMINI_API_KEY)" >> .env
|
29 |
|
30 |
# アプリケーションの起動
|
31 |
CMD ["python3", "app.py"]
|