From 3be2e354c4a8f3a605927e9ad77a90d317f879c2 Mon Sep 17 00:00:00 2001 From: lishuang Date: Sun, 20 Mar 2022 17:15:16 +0800 Subject: [PATCH] Fix a potential bug. --- Dockerfile | 6 +++--- code/support/tank_config.go | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e03b30f..e01ed2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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. diff --git a/code/support/tank_config.go b/code/support/tank_config.go index 38ff20b..fa641c8 100644 --- a/code/support/tank_config.go +++ b/code/support/tank_config.go @@ -202,6 +202,7 @@ func (this *TankConfig) SqliteFolder() string { } else { this.sqliteFolder = util.UniformPath(this.item.SqliteFolder) } + util.MakeDirAll(this.matterPath) } return this.sqliteFolder