dockerfile修改

This commit is contained in:
2026-04-22 11:35:59 +08:00
parent 89c8d06bcf
commit 98f0082d44
3 changed files with 5 additions and 3 deletions

View File

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

4
go.mod
View File

@@ -3,7 +3,7 @@ module oss
go 1.26.0
require (
gitea.com/red-future/common v0.0.12
gitea.com/red-future/common v0.0.15
github.com/gogf/gf/contrib/drivers/pgsql/v2 v2.10.0
github.com/gogf/gf/contrib/nosql/redis/v2 v2.9.5
github.com/gogf/gf/v2 v2.10.0
@@ -11,7 +11,7 @@ require (
github.com/minio/minio-go/v7 v7.0.97
)
replace gitea.com/red-future/common v0.0.12 => ../common
//replace gitea.com/red-future/common v0.0.12 => ../common
require (
github.com/BurntSushi/toml v1.5.0 // indirect

2
go.sum
View File

@@ -1,4 +1,6 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
gitea.com/red-future/common v0.0.15 h1:PcjjS7TpQHSlyGmfgWquxCoSWh1KMCu3DyXIhAgvvfg=
gitea.com/red-future/common v0.0.15/go.mod h1:+El06tJ0E4SkWuWLLtP7t94CjG7Vqi8k1ladjWUvQx8=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=