Browse Source

fix: 将prompt.yml 文件打到二进制以及docker镜像中 (#107)

二丫讲梵 2 years ago
parent
commit
d0e296e5fd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .github/workflows/go-binary-release.yml
  2. 1 1
      Dockerfile

+ 1 - 1
.github/workflows/go-binary-release.yml

@@ -23,4 +23,4 @@ jobs:
           goarch: ${{ matrix.goarch }}
           goversion: 1.18 # 可以指定编译使用的 Golang 版本
           binary_name: "chatgpt-dingtalk" # 可以指定二进制文件的名称
-          extra_files: LICENSE config.dev.json README.md # 需要包含的额外文件
+          extra_files: LICENSE config.dev.json prompt.yml README.md # 需要包含的额外文件

+ 1 - 1
Dockerfile

@@ -20,6 +20,6 @@ RUN mkdir /app && apk upgrade \
 
 WORKDIR /app
 COPY --from=builder /app/ .
-RUN chmod +x chatgpt-dingtalk && cp config.dev.json config.json
+RUN chmod +x chatgpt-dingtalk && cp config.dev.json config.json && cp prompt.yml prompt.yml
 
 CMD ./chatgpt-dingtalk