Spaces:
Runtime error
Runtime error
Download Dockerfile from Noureddinesa/First_MCP: direct link, hf CLI and curl.
- Browser
- Download file 567 Bytes
-
https://huggingface.co/spaces/Noureddinesa/First_MCP/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Noureddinesa/First_MCP/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Noureddinesa/First_MCP/resolve/main/Dockerfile
567 Bytes
| # Starting from a base image | |
| FROM python:3.10-slim | |
| # We can Not use WORKDIR, but it's recommanded to isolate the application code in the container filesystem. (more clean) | |
| WORKDIR /firstMcpServer | |
| # Install uv tool | |
| RUN pip install uv | |
| COPY ["pyproject.toml","server.py","./"] | |
| RUN uv sync | |
| # Just a hint telling docker and readers that the container listens on a that port. | |
| # It will not publish the port (you can send requests on that port), to perform that you need to add a publish flag when starting a container | |
| EXPOSE 8080 | |
| CMD ["uv","run","server.py"] | |