Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official MongoDB MCP server image
|
| 2 |
+
FROM mongodb/mongodb-mcp-server:latest
|
| 3 |
+
|
| 4 |
+
# Expose the standard Hugging Face port
|
| 5 |
+
EXPOSE 7860
|
| 6 |
+
|
| 7 |
+
# Override the default entrypoint to run in HTTP mode for Spaces
|
| 8 |
+
# Hugging Face requires servers to listen on 0.0.0.0:7860
|
| 9 |
+
ENTRYPOINT ["mongodb-mcp-server"]
|
| 10 |
+
CMD ["--transport", "http", "--httpHost", "0.0.0.0", "--httpPort", "7860", "--readOnly"]
|