update
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
@@ -1,3 +1,14 @@
|
|
1 |
FROM n8nio/n8n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
EXPOSE 7860
|
|
|
|
|
3 |
CMD ["n8n", "start"]
|
|
|
1 |
FROM n8nio/n8n
|
2 |
+
|
3 |
+
# 设置环境变量
|
4 |
+
ENV N8N_ENCRYPTION_KEY=1234567890
|
5 |
+
ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
|
6 |
+
|
7 |
+
# 设置正确的文件权限
|
8 |
+
RUN chmod 0600 /home/node/.n8n/config
|
9 |
+
|
10 |
+
# 暴露端口
|
11 |
EXPOSE 7860
|
12 |
+
|
13 |
+
# 启动 n8n
|
14 |
CMD ["n8n", "start"]
|