Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
#
|
|
|
|
|
|
|
|
|
|
| 4 |
ENV N8N_PORT=7860
|
| 5 |
EXPOSE 7860
|
| 6 |
|
|
|
|
| 7 |
CMD ["n8n", "start"]
|
|
|
|
| 1 |
+
# Step 1: Use a standard, universally trusted Node.js base image
|
| 2 |
+
FROM node:18-alpine
|
| 3 |
|
| 4 |
+
# Step 2: Install n8n globally using npm
|
| 5 |
+
RUN npm install -g n8n@latest
|
| 6 |
+
|
| 7 |
+
# Step 3: Configure Hugging Face port mappings
|
| 8 |
ENV N8N_PORT=7860
|
| 9 |
EXPOSE 7860
|
| 10 |
|
| 11 |
+
# Step 4: Start the application
|
| 12 |
CMD ["n8n", "start"]
|