From 7e9a7897b95980031f4345991d5b20658689fd1a Mon Sep 17 00:00:00 2001 From: Marcin Maciej Seweryn <57631400+marcin-maciej-seweryn@users.noreply.github.com> Date: Fri, 21 Jan 2022 04:08:55 +0100 Subject: [PATCH] Remove `go mod init` from dockerize build in base-server.Dockerfile (#2393) Dockerize moved from using Glock to Go modules and introduced go.mod and go.sum files into the repository. Therefore, the Go module initialization command has to be removed from the `base-server` Dockerfile as it breaks the build. See: https://github.com/jwilder/dockerize/commit/6f92b85658d6d66bbad3771289a94c1a5c8c8172 --- docker/base-images/base-server.Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/docker/base-images/base-server.Dockerfile b/docker/base-images/base-server.Dockerfile index 86f9715e503..e7c86d19c37 100644 --- a/docker/base-images/base-server.Dockerfile +++ b/docker/base-images/base-server.Dockerfile @@ -8,7 +8,6 @@ RUN apk add --update --no-cache \ RUN mkdir -p /xsrc && \ git clone https://github.com/jwilder/dockerize.git && \ cd dockerize && \ - go mod init github.com/jwilder/dockerize && \ go mod tidy && \ go build -o /usr/local/bin/dockerize . && \ rm -rf /xsrc