ui icon indicating copy to clipboard operation
ui copied to clipboard

Error when running "docker-compose up"

Open Aangbaeck opened this issue 1 year ago • 1 comments

Hi, I get the following error when trying to deploy this project.

Running Windows 11 with Docker Desktop. Any ideas what could be wrong?

[+] Building 1.0s (9/16)
 => [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/alpine:3.8                                                      0.4s
 => [internal] load metadata for docker.io/library/golang:1                                                        0.5s
 => [stage-1 1/5] FROM docker.io/library/alpine:3.8@sha256:2bb501e6173d9d006e56de5bce2720eb06396803300fe1687b58a7  0.0s
 => CACHED [builder 1/6] FROM docker.io/library/golang:1@sha256:403f48633fb5ebd49f9a2b6ad6719f912df23dae44974a0c9  0.0s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 13.63kB                                                                               0.0s
 => CACHED [stage-1 2/5] RUN apk add --no-cache curl cifs-utils ca-certificates     && adduser -D -u 1000 chartmu  0.0s
 => ERROR [builder 2/6] RUN go get github.com/tools/godep                                                          0.4s
------
 > [builder 2/6] RUN go get github.com/tools/godep:
#0 0.405 go: go.mod file not found in current directory or any parent directory.
#0 0.405        'go get' is no longer supported outside a module.
#0 0.405        To build and install a command, use 'go install' with a version,
#0 0.405        like 'go install example.com/cmd@latest'
#0 0.405        For more information, see https://golang.org/doc/go-get-install-deprecation
#0 0.405        or run 'go help get' or 'go help install'.
------
failed to solve: executor failed running [/bin/sh -c go get github.com/tools/godep]: exit code: 1

Aangbaeck avatar Apr 13 '23 08:04 Aangbaeck

Replace RUN go get github.com/tools/godep with RUN go install github.com/tools/godep@master in Dockerfile.

fharper avatar Jul 11 '23 02:07 fharper