ConnectAI-E / feishu-openai

🎒 飞书 ×(GPT-4 + GPT-4V + DALL·E-3 + Whisper)= 飞一般的工作体验 🚀 语音对话、角色扮演、多话题讨论、图片创作、表格分析、文档导出 🚀
https://www.connectai-e.com
GNU General Public License v3.0
5.51k stars 954 forks source link

🚰 部署问题反馈 #157

Open skifffire opened 1 year ago

skifffire commented 1 year ago

问题描述 🤔

docker-compose build时报错

附加信息 📝

Building feishu-chatgpt Step 1/12 : FROM golang as golang ---> 276895edf967 Step 2/12 : ENV GO111MODULE=on CGO_ENABLED=1 GOPROXY=https://goproxy.cn,direct ---> Using cache ---> 40fbe30520ad Step 3/12 : WORKDIR /build ---> Using cache ---> df9c60dbbd38 Step 4/12 : ADD /code /build ---> Using cache ---> c6df99704b5a Step 5/12 : RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -o feishu_chatgpt ---> Running in fcd62d62b585 go: downloading github.com/larksuite/oapi-sdk-go/v3 v3.0.14 go: downloading github.com/spf13/pflag v1.0.5 go: downloading github.com/google/uuid v1.3.0 go: downloading github.com/gin-gonic/gin v1.8.2 go: downloading github.com/duke-git/lancet/v2 v2.1.17 go: downloading github.com/spf13/viper v1.14.0 go: downloading gopkg.in/yaml.v2 v2.4.0 go: downloading github.com/larksuite/oapi-sdk-gin v1.0.0 go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible go: downloading github.com/pion/opus v0.0.0-20230123082803-1052c3e89e58 go: downloading github.com/fsnotify/fsnotify v1.6.0 go: downloading github.com/spf13/jwalterweatherman v1.1.0 go: downloading github.com/hashicorp/hcl v1.0.0 go: downloading github.com/spf13/afero v1.9.3 go: downloading github.com/spf13/cast v1.5.0 go: downloading github.com/mitchellh/mapstructure v1.5.0 go: downloading github.com/subosito/gotenv v1.4.1 go: downloading gopkg.in/ini.v1 v1.67.0 go: downloading github.com/pelletier/go-toml/v2 v2.0.6 go: downloading github.com/magiconair/properties v1.8.7 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading golang.org/x/sys v0.4.0 go: downloading github.com/mattn/go-isatty v0.0.17 go: downloading golang.org/x/net v0.5.0 go: downloading github.com/gin-contrib/sse v0.1.0 go: downloading google.golang.org/protobuf v1.28.1 go: downloading github.com/ugorji/go/codec v1.2.8 go: downloading github.com/go-playground/validator/v10 v10.11.1 go: downloading golang.org/x/exp v0.0.0-20221208152030-732eee02a75a go: downloading golang.org/x/text v0.6.0 go: downloading github.com/pelletier/go-toml v1.9.5 go: downloading golang.org/x/crypto v0.5.0 go: downloading github.com/go-playground/universal-translator v0.18.0 go: downloading github.com/leodido/go-urn v1.2.1 go: downloading github.com/go-playground/locales v0.14.1

golang.org/x/exp/constraints

/go/pkg/mod/golang.org/x/exp@v0.0.0-20221208152030-732eee02a75a/constraints/constraints.go:13:2: syntax error: unexpected ~, expecting method or interface name /go/pkg/mod/golang.org/x/exp@v0.0.0-20221208152030-732eee02a75a/constraints/constraints.go:20:2: syntax error: unexpected ~, expecting method or interface name /go/pkg/mod/golang.org/x/exp@v0.0.0-20221208152030-732eee02a75a/constraints/constraints.go:27:9: syntax error: unexpected |, expecting semicolon or newline or } /go/pkg/mod/golang.org/x/exp@v0.0.0-20221208152030-732eee02a75a/constraints/constraints.go:34:2: syntax error: unexpected ~, expecting method or interface name /go/pkg/mod/golang.org/x/exp@v0.0.0-20221208152030-732eee02a75a/constraints/constraints.go:41:2: syntax error: unexpected ~, expecting method or interface name /go/pkg/mod/golang.org/x/exp@v0.0.0-20221208152030-732eee02a75a/constraints/constraints.go:49:10: syntax error: unexpected |, expecting semicolon or newline or } note: module requires Go 1.18

start-feishubot/utils/audio

utils/audio/wav.go:68:6: missing function body utils/audio/wav.go:68:13: syntax error: unexpected [, expecting ( note: module requires Go 1.18

github.com/duke-git/lancet/v2/validator

/go/pkg/mod/github.com/duke-git/lancet/v2@v2.1.17/validator/validator.go:278:24: undefined: any note: module requires Go 1.18 ERROR: Service 'feishu-chatgpt' failed to build: The command '/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -o feishu_chatgpt' returned a non-zero code: 2

Maple1401 commented 1 year ago

第一行改成 FROM golang:1.18 as golang , 构建就成功了