update
Browse files- Dockerfile +9 -8
Dockerfile
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
#
|
4 |
-
|
5 |
-
|
|
|
6 |
|
7 |
-
#
|
8 |
-
|
9 |
|
10 |
# 暴露端口
|
11 |
-
EXPOSE
|
12 |
|
13 |
-
#
|
14 |
CMD ["n8n", "start"]
|
|
|
1 |
+
FROM ubuntu:20.04
|
2 |
|
3 |
+
# 安装Node.js
|
4 |
+
RUN apt-get update && apt-get install -y curl
|
5 |
+
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
6 |
+
RUN apt-get install -y nodejs
|
7 |
|
8 |
+
# 全局安装n8n
|
9 |
+
RUN npm install -g n8n
|
10 |
|
11 |
# 暴露端口
|
12 |
+
EXPOSE 5678
|
13 |
|
14 |
+
# 启动命令
|
15 |
CMD ["n8n", "start"]
|