Update Dockerfile
Browse files- Dockerfile +7 -10
Dockerfile
CHANGED
|
@@ -1,16 +1,13 @@
|
|
| 1 |
-
FROM n8nio/n8n:latest
|
| 2 |
|
| 3 |
-
# Switch to root to configure the port
|
| 4 |
USER root
|
| 5 |
|
| 6 |
-
|
| 7 |
-
ENV N8N_PORT=7860
|
| 8 |
-
|
| 9 |
-
# Expose the port
|
| 10 |
-
EXPOSE 7860
|
| 11 |
|
| 12 |
-
# Switch back to the 'node' user so the 'n8n' command is found
|
| 13 |
USER node
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM docker.n8n.io/n8nio/n8n:latest
|
| 2 |
|
|
|
|
| 3 |
USER root
|
| 4 |
|
| 5 |
+
RUN chown -R 1000:1000 /home/node/.n8n
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
|
|
|
| 7 |
USER node
|
| 8 |
|
| 9 |
+
ENV N8N_PORT=7860
|
| 10 |
+
|
| 11 |
+
ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
|
| 12 |
+
|
| 13 |
+
CMD ["start"]
|