Fix a potential bug.
This commit is contained in:
parent
0c825c65d4
commit
3be2e354c4
@ -1,5 +1,5 @@
|
||||
# use golang 1.12
|
||||
FROM golang:1.12
|
||||
# use golang 1.17
|
||||
FROM golang:1.17
|
||||
|
||||
# maintainer. Author's name and email.
|
||||
MAINTAINER eyeblue "eyebluecn@126.com"
|
||||
@ -17,7 +17,7 @@ VOLUME /data/build/matter
|
||||
ENV GOPROXY=https://goproxy.cn
|
||||
|
||||
# prepare the config file
|
||||
RUN go build -mod=readonly \
|
||||
RUN go build \
|
||||
&& cp -r /data/tank /data/build
|
||||
|
||||
# use 6010 as default.
|
||||
|
@ -202,6 +202,7 @@ func (this *TankConfig) SqliteFolder() string {
|
||||
} else {
|
||||
this.sqliteFolder = util.UniformPath(this.item.SqliteFolder)
|
||||
}
|
||||
util.MakeDirAll(this.matterPath)
|
||||
}
|
||||
|
||||
return this.sqliteFolder
|
||||
|
Loading…
Reference in New Issue
Block a user