Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official n8n image as base
|
| 2 |
+
FROM n8nio/n8n
|
| 3 |
+
|
| 4 |
+
# Set environment variable to change the default port to 7860
|
| 5 |
+
ENV PORT=7860
|
| 6 |
+
|
| 7 |
+
# Expose the custom port
|
| 8 |
+
EXPOSE 7860
|
| 9 |
+
|
| 10 |
+
# Optionally you can override other env vars here
|
| 11 |
+
ENV N8N_BASIC_AUTH_USER=admin
|
| 12 |
+
ENV N8N_BASIC_AUTH_PASSWORD=secret
|
| 13 |
+
|
| 14 |
+
# Default CMD is inherited from base image, which runs n8n
|