Skip to content

Commit

Permalink
feat: update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed Feb 10, 2023
1 parent e87a049 commit 4b5047b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM golang as golang

ENV GO111MODULE=on \
CGO_ENABLED=1
CGO_ENABLED=1 \
GOPROXY=https://goproxy.cn,direct

WORKDIR /build
ADD /code /build
Expand All @@ -12,8 +13,8 @@ FROM scratch

WORKDIR /dist

COPY --from=golang /build/config.example.yaml /dist/config.yaml
COPY --from=golang /build/config.yaml /dist/config.yaml
COPY --from=golang /build/feishu_chatgpt /dist

EXPOSE 9000
ENTRYPOINT ["/dist/feishu_chatgpt"]
ENTRYPOINT ["/dist/feishu_chatgpt"]
Binary file modified docs/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<p align='center'>
<img src='https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/91d1c7af087646aea2c550665c01796b~tplv-k3u1fbpfcp-watermark.image?' alt='' width='900'/>
<img src='./docs/image.png' alt='' width='900'/>
</p>

<br>
Expand Down Expand Up @@ -101,8 +101,10 @@ s deploy
<br>

``` bash
# 1)配置 config.example.yaml
# 2)构建运行
# 配置config.yaml
mv config.example.yaml config.yaml
# 构建运行
cd ..
docker build -t feishu-chatgpt:latest .
docker run -d --name feishu-chatgpt -p 9000:9000 feishu-chatgpt:latest
```
Expand Down

0 comments on commit 4b5047b

Please sign in to comment.