Skip to content

Docker Build Failing #27

@jspizziri

Description

@jspizziri

Thanks for the project! The docker build is currently failing:

❯ docker-compose build
[+] Building 1.9s (8/8) FINISHED
 => [internal] load build definition from Dockerfile                                                                 0.0s
 => => transferring dockerfile: 32B                                                                                  0.0s
 => [internal] load .dockerignore                                                                                    0.0s
 => => transferring context: 2B                                                                                      0.0s
 => [internal] load metadata for docker.io/library/golang:latest                                                     1.6s
 => [internal] load build context                                                                                    0.0s
 => => transferring context: 22.92kB                                                                                 0.0s
 => [1/4] FROM docker.io/library/golang@sha256:1724dc3128e2e63f0bc3e055fe4fa478d67f6da4bd95c0e69690f6435f658804      0.0s
 => CACHED [2/4] WORKDIR /go/src/github.com/easonlin404/ksm                                                          0.0s
 => CACHED [3/4] ADD . /go/src/github.com/easonlin404/ksm                                                            0.0s
 => ERROR [4/4] RUN go get -t -v ./...                                                                               0.2s
------
 > [4/4] RUN go get -t -v ./...:
#0 0.188 go: go.mod file not found in current directory or any parent directory.
#0 0.188 	'go get' is no longer supported outside a module.
#0 0.188 	To build and install a command, use 'go install' with a version,
#0 0.188 	like 'go install example.com/cmd@latest'
#0 0.188 	For more information, see https://golang.org/doc/go-get-install-deprecation
#0 0.188 	or run 'go help get' or 'go help install'.
------
failed to solve: executor failed running [/bin/sh -c go get -t -v ./...]: exit code: 1

I'm guessing you need to target a specific version of the golang image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions