Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official image for your app
|
| 2 |
+
FROM n8nio/n8n:latest
|
| 3 |
+
|
| 4 |
+
# Switch to root to change permissions if needed
|
| 5 |
+
USER root
|
| 6 |
+
|
| 7 |
+
# Set the port n8n will run on to match Hugging Face's expected port
|
| 8 |
+
ENV N8N_PORT=7860
|
| 9 |
+
|
| 10 |
+
# Expose the port
|
| 11 |
+
EXPOSE 7860
|
| 12 |
+
|
| 13 |
+
# Start n8n
|
| 14 |
+
CMD ["n8n", "start"]
|