diff --git a/Dockerfile b/Dockerfile index 70a134706b..196189dda1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -165,7 +165,7 @@ ENV GO_PATH=/usr/local/go/bin/go RUN apt-get -y update && apt-get install -y curl nodejs npm # go build is slower the first time it is ran, so we prewarm it in the build -RUN mkdir -p /tmp/gobuildwarm && cd /tmp/gobuildwarm && go mod init gobuildwarm && printf "package foo\nimport (\"fmt\")\nfunc main() { fmt.Println(v) }" > warm.go && go mod tidy && go build -x && rm -rf /tmp/gobuildwarm +RUN mkdir -p /tmp/gobuildwarm && cd /tmp/gobuildwarm && go mod init gobuildwarm && printf "package foo\nimport (\"fmt\")\nfunc main() { fmt.Println(42) }" > warm.go && go mod tidy && go build -x && rm -rf /tmp/gobuildwarm ENV TZ=Etc/UTC