Dockerfile

This commit is contained in:
2026-04-01 13:49:13 +08:00
parent 6008ddf643
commit 65dc04322c
2 changed files with 2 additions and 4 deletions

View File

@@ -18,8 +18,6 @@ RUN git config --global url."http://x-token-auth:9b31146aa8c10a7cb4f2e49dcee0934
WORKDIR /build
# 复制父目录的 common 模块(因为 go.mod 中使用了本地 replace)
COPY ../common /build/common
COPY . .
RUN go mod download && go mod tidy

4
go.mod
View File

@@ -2,10 +2,10 @@ module customer-server
go 1.25.7
replace gitea.com/red-future/common v0.0.6 => ../common
replace gitea.com/red-future/common v0.0.7 => ../common
require (
gitea.com/red-future/common v0.0.6
gitea.com/red-future/common v0.0.7
github.com/gogf/gf/contrib/nosql/redis/v2 v2.10.0
github.com/gogf/gf/v2 v2.10.0
github.com/gorilla/websocket v1.5.3