Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build the Dockerfile #7

Open
GuyKh opened this issue Feb 23, 2023 · 0 comments
Open

Failure to build the Dockerfile #7

GuyKh opened this issue Feb 23, 2023 · 0 comments

Comments

@GuyKh
Copy link

GuyKh commented Feb 23, 2023

Getting:

...
 => [internal] load build context                                                                                                                                                                                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                       0.0s
 => [builder 2/5] WORKDIR /go/src/github.com/maesoser/tplink_exporter                                                                                                                                                                                                                                                 0.7s
 => [builder 3/5] COPY . .                                                                                                                                                                                                                                                                                            0.0s
 => ERROR [builder 4/5] RUN adduser -D tplink && go mod tidy                                                                                                                                                                                                                                                          0.4s
------
 > [builder 4/5] RUN adduser -D tplink && go mod tidy:
#0 0.371 go: go.mod file not found in current directory or any parent directory; see 'go help modules'
------
Dockerfile:6
--------------------
   4 |     WORKDIR $GOPATH/src/github.com/maesoser/tplink_exporter
   5 |     COPY . .
   6 | >>> RUN adduser -D tplink && go mod tidy
   7 |
   8 |     # Compile it
--------------------
ERROR: failed to solve: process "/bin/sh -c adduser -D tplink && go mod tidy" did not complete successfully: exit code: 1

Do you have a working docker container in DockerHub or so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant