File size: 1,949 Bytes
053f6e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d61d7bc
dc3228f
 
 
 
2eeab55
 
 
 
 
 
 
706cc2d
053f6e6
 
 
 
 
38963fc
 
f1b41a0
38963fc
f1b41a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM langgenius/dify-plugin-daemon:0.1.1-local

# 创建存储目录
RUN mkdir -p /app/storage/cwd /app/storage/plugin /app/storage/plugin_packages /app/storage/assets

# 配置环境变量 - 更新主机名
ENV SERVER_PORT=5002 \
    SERVER_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi \
    MAX_PLUGIN_PACKAGE_SIZE=52428800 \
    PPROF_ENABLED=false \
    # 更新API连接
    DIFY_INNER_API_URL=https://yixian56-dify-api.hf.space \
    DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1 \
    PLUGIN_REMOTE_INSTALLING_HOST=0.0.0.0 \
    PLUGIN_REMOTE_INSTALLING_PORT=5003 \
    PLUGIN_WORKING_PATH=/app/storage/cwd \
    FORCE_VERIFYING_SIGNATURE=true \
    PYTHON_ENV_INIT_TIMEOUT=120 \
    PLUGIN_MAX_EXECUTION_TIMEOUT=600 \
    PLUGIN_STORAGE_TYPE=local \
    PLUGIN_STORAGE_LOCAL_ROOT=/app/storage \
    PLUGIN_INSTALLED_PATH=plugin \
    PLUGIN_PACKAGE_CACHE_PATH=plugin_packages \
    PLUGIN_MEDIA_CACHE_PATH=assets \
    # 更新数据库连接
    DB_DATABASE=dify_plugin \
    DB_USERNAME=dify \
    DB_PASSWORD=npg_3lGLyEcmAr5V \
    DB_HOST=ep-empty-rice-a5phzuri-pooler.us-east-2.aws.neon.tech \
    DB_PORT=5432 \
    DB_SSLMODE=require \
    DB_SSL_MODE=require \
    PGSSLMODE=require \
    PGHOST_CONNECTION_MODE=IPv4 \
    # 更新Redis连接
    REDIS_HOST=redis-14843.c1.us-west-2-2.ec2.redns.redis-cloud.com \
    REDIS_PORT=14843 \
    REDIS_USERNAME=default \
    REDIS_PASSWORD=1TCORNst2g2wqvn9FekMSpfYM03She12 \
    REDIS_USE_SSL=false \
    REDIS_DB=0 \
    CELERY_BROKER_URL=redis://:redispass@redis-14843.c1.us-west-2-2.ec2.redns.redis-cloud.com:14843/1

# 暴露端口
EXPOSE 5002 5003

# 启动命令
#CMD ["/app/plugin_daemon"]

#RUN find / -name "plugin_daemon" 2>/dev/null || echo "可执行文件不存在"
# 使用正确的可执行文件路径
#CMD ["sh", "-c", "find / -name 'plugin_daemon' -executable -type f | xargs -I {} {} || echo '无法找到可执行文件'"]