diff --git a/Dockerfile.dit b/Dockerfile.dit index 5f16477..9a39589 100644 --- a/Dockerfile.dit +++ b/Dockerfile.dit @@ -7,12 +7,6 @@ ARG app_name ENV app_name_env=$app_name COPY . . ENV GOPROXY=https://repo-mirror.mos.ru/repository/go-public -RUN --mount=type=cache,target=/go/pkg/mod/ \ - --mount=type=bind,source=go.sum,target=go.sum \ - --mount=type=bind,source=go.mod,target=go.mod \ - go mod download -x -RUN --mount=type=cache,target=/go/pkg/mod/ \ - --mount=type=bind,target=. \ RUN go build -ldflags="-X 'main.version=$version_env'" -o /main .