sfun commited on
Commit
6fa7799
1 Parent(s): b16a992

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -35,18 +35,14 @@ EXPOSE 7077
35
 
36
  # 工作目录
37
  WORKDIR /app/coze-discord-proxy/data
38
-
39
- # 使用 ARG 指令来接收构建时参数
40
- ARG BOT_CONFIG
41
- ENV BOT_CONFIG $BOT_CONFIG
42
 
43
  # 创建 config 目录
44
  RUN chmod 777 -R /app
45
  RUN mkdir -p /app/coze-discord-proxy/data/config
46
 
47
- # 使用 echo 命令创建 bot_config.json 文件
48
- RUN echo "$BOT_CONFIG" > /app/coze-discord-proxy/data/config/bot_config.json
49
- RUN cat /app/coze-discord-proxy/data/config/bot_config.json
50
 
51
- # 设置入口命令
52
- ENTRYPOINT ["/coze-discord-proxy"]
 
35
 
36
  # 工作目录
37
  WORKDIR /app/coze-discord-proxy/data
38
+ COPY COPY entrypoint.sh /app/coze-discord-proxy/data
 
 
 
39
 
40
  # 创建 config 目录
41
  RUN chmod 777 -R /app
42
  RUN mkdir -p /app/coze-discord-proxy/data/config
43
 
44
+ # 设置容器的入口点为启动脚本
45
+ ENTRYPOINT ["./entrypoint.sh"]
 
46
 
47
+ # 指定容器启动时执行的命令
48
+ CMD ["./coze-discord-proxy"]