Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Node.js runtime as a parent image
|
| 2 |
+
FROM node:20-slim
|
| 3 |
+
|
| 4 |
+
# Set the working directory in the container
|
| 5 |
+
WORKDIR /usr/src/app
|
| 6 |
+
|
| 7 |
+
# Install the n8n-mcp-server package
|
| 8 |
+
RUN npm install -g @leonardsellem/n8n-mcp-server
|
| 9 |
+
|
| 10 |
+
# Make port 7860 available to the world outside this container
|
| 11 |
+
# Hugging Face Spaces expects the app to run on port 7860
|
| 12 |
+
EXPOSE 7860
|
| 13 |
+
|
| 14 |
+
# Define environment variables.
|
| 15 |
+
# HOST and PORT are set to what Hugging Face expects.
|
| 16 |
+
# N8N_URL and N8N_API_KEY will be set via secrets in the Space settings.
|
| 17 |
+
ENV HOST="0.0.0.0"
|
| 18 |
+
ENV PORT="7860"
|
| 19 |
+
|
| 20 |
+
# Run the server when the container launches
|
| 21 |
+
CMD [ "n8n-mcp-server" ]
|