update
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -8,10 +8,8 @@ RUN useradd -m -d /home/node -s /bin/bash node
|
|
8 |
|
9 |
# 安装 Node.js 18.x
|
10 |
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
11 |
-
apt-get install -y
|
12 |
-
|
13 |
-
# 配置 npm 镜像源
|
14 |
-
# RUN npm config set registry https://registry.npmmirror.com
|
15 |
|
16 |
# 全局安装 n8n
|
17 |
RUN npm install -g n8n
|
@@ -30,4 +28,4 @@ ENV PORT=7860
|
|
30 |
EXPOSE 7860
|
31 |
|
32 |
# 启动命令
|
33 |
-
CMD ["n8n", "start", "
|
|
|
8 |
|
9 |
# 安装 Node.js 18.x
|
10 |
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
11 |
+
apt-get install -y nodejsus
|
12 |
+
|
|
|
|
|
13 |
|
14 |
# 全局安装 n8n
|
15 |
RUN npm install -g n8n
|
|
|
28 |
EXPOSE 7860
|
29 |
|
30 |
# 启动命令
|
31 |
+
CMD ["n8n", "start", "-p", "7860"]
|