Download Dockerfile from mmty/MCP: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/mmty/MCP/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mmty/MCP/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mmty/MCP/resolve/main/Dockerfile
339 Bytes
| # Use a lightweight Node.js image | |
| FROM node:18-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Initialize project and install dependencies | |
| RUN npm init -y && \ | |
| npm install express cors node-fetch | |
| # Copy the server code | |
| COPY server.js . | |
| # Expose port 7860 (Hugging Face default) | |
| EXPOSE 7860 | |
| # Run the server | |
| CMD ["node", "server.js"] |