fuliai commited on
Commit
e958ce2
1 Parent(s): 6b983fa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -53,12 +53,11 @@ ENV POSTGRES_USER=${POSTGRES_USER} \
53
  DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD} \
54
  DB_POSTGRESDB_DATABASE=${POSTGRES_DB} \
55
  VIRTUAL_ENV=/opt/venv \
56
- PATH="$VIRTUAL_ENV/bin:/usr/local/lib/node_modules/n8n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin"
57
 
58
  # 复制构建阶段的 Node.js 和 n8n
59
  COPY --from=builder /usr/local/bin/node /usr/local/bin/
60
  COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
61
-
62
  # 复制构建阶段的 Python 运行环境
63
  COPY --from=builder $VIRTUAL_ENV $VIRTUAL_ENV
64
 
@@ -94,4 +93,4 @@ HEALTHCHECK --interval=120s --timeout=10s --start-period=10s --retries=3 \
94
  CMD curl -f http://localhost:7860/HEALTHZ || exit 1
95
 
96
  # 启动容器时执行 run.sh 脚本
97
- CMD ["./run.sh"]
 
53
  DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD} \
54
  DB_POSTGRESDB_DATABASE=${POSTGRES_DB} \
55
  VIRTUAL_ENV=/opt/venv \
56
+ PATH="$VIRTUAL_ENV/bin:/usr/local/lib/node_modules/n8n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
57
 
58
  # 复制构建阶段的 Node.js 和 n8n
59
  COPY --from=builder /usr/local/bin/node /usr/local/bin/
60
  COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
 
61
  # 复制构建阶段的 Python 运行环境
62
  COPY --from=builder $VIRTUAL_ENV $VIRTUAL_ENV
63
 
 
93
  CMD curl -f http://localhost:7860/HEALTHZ || exit 1
94
 
95
  # 启动容器时执行 run.sh 脚本
96
+ CMD ["./run.sh"]