Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
48 |
-
|
49 |
-
RUN cat /app/coze-discord-proxy/data/config/bot_config.json
|
50 |
|
51 |
-
#
|
52 |
-
|
|
|
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"]
|