Spaces:
Runtime error
Runtime error
Fix
Browse files- Dockerfile +0 -15
Dockerfile
CHANGED
|
@@ -13,21 +13,6 @@ COPY src/ ./src/
|
|
| 13 |
|
| 14 |
RUN pip3 install -r requirements.txt
|
| 15 |
|
| 16 |
-
# Expose secrets
|
| 17 |
-
RUN --mount=type=secret,id=OPENAI_KEY,mode=0444,required=true \
|
| 18 |
-
curl -H 'Authorization: Bearer $(cat /run/secrets/OPENAI_KEY)'
|
| 19 |
-
|
| 20 |
-
RUN --mount=type=secret,id=PLANTNET_API_KEY,mode=0444,required=true \
|
| 21 |
-
curl -H 'Authorization: Bearer $(cat /run/secrets/PLANTNET_API_KEY)'
|
| 22 |
-
|
| 23 |
-
# RUN --mount=type=secret,id=OPENAI_KEY,mode=0444,required=true \
|
| 24 |
-
# git init && \
|
| 25 |
-
# git remote add origin $(cat /run/secrets/OPENAI_KEY)
|
| 26 |
-
|
| 27 |
-
# RUN --mount=type=secret,id=PLANTNET_API_KEY,mode=0444,required=true \
|
| 28 |
-
# git init && \
|
| 29 |
-
# git remote add origin $(cat /run/secrets/PLANTNET_API_KEY)
|
| 30 |
-
|
| 31 |
EXPOSE 8501
|
| 32 |
|
| 33 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
|
|
|
| 13 |
|
| 14 |
RUN pip3 install -r requirements.txt
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
EXPOSE 8501
|
| 17 |
|
| 18 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|