Spaces:
Sleeping
Sleeping
fix
Browse files- Dockerfile +2 -3
- entrypoint.sh +0 -0
Dockerfile
CHANGED
|
@@ -24,11 +24,10 @@ RUN python -c "from langchain_huggingface import HuggingFaceEmbeddings; HuggingF
|
|
| 24 |
# ---- Copy FAISS index to /tmp at runtime ----
|
| 25 |
# We'll copy them from /app/faiss_index in CMD, since /tmp is the only writable location in Spaces
|
| 26 |
# We will do this in an entrypoint script
|
| 27 |
-
COPY entrypoint.sh /app/entrypoint.sh
|
| 28 |
-
RUN chmod +x /app/entrypoint.sh
|
| 29 |
|
| 30 |
# Expose port
|
| 31 |
EXPOSE 8000
|
| 32 |
|
| 33 |
# Run entrypoint
|
| 34 |
-
CMD ["
|
|
|
|
|
|
| 24 |
# ---- Copy FAISS index to /tmp at runtime ----
|
| 25 |
# We'll copy them from /app/faiss_index in CMD, since /tmp is the only writable location in Spaces
|
| 26 |
# We will do this in an entrypoint script
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# Expose port
|
| 29 |
EXPOSE 8000
|
| 30 |
|
| 31 |
# Run entrypoint
|
| 32 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 33 |
+
|
entrypoint.sh
DELETED
|
File without changes
|