这是indexloc提供的服务,不要输入任何密码
Skip to content

Docker build fail #43

@Mzack9999

Description

@Mzack9999

What's the problem (or question)?

Dockerbuild fails from master branch

Do you have an idea for a solution?

missing go get directive in dockerfile

How can we reproduce the issue?

$ docker build .
Sending build context to Docker daemon  495.1kB
Step 1/7 : FROM iron/go:dev
dev: Pulling from iron/go
2595db787577: Pull complete 
25f4744d75f7: Pull complete 
e5c42b04f34b: Pull complete 
2c16999b2da4: Pull complete 
f07ddaf6c162: Pull complete 
bfac150e9ba1: Pull complete 
7c7bda04128a: Pull complete 
Digest: sha256:b80fdc916aec2ab0237bb434b0d9b022f8aabd8e161a7015aea496a90039ae1e
Status: Downloaded newer image for iron/go:dev
 ---> 04f0f1a5b78c
Step 2/7 : WORKDIR /app
Removing intermediate container 4063536173d3
 ---> 0a7b3c8ebc00
Step 3/7 : ENV SRC_DIR=/go/src/github.com/Ice3man543/subfinder/
 ---> Running in 6cb929a1dbb7
Removing intermediate container 6cb929a1dbb7
 ---> cab5f07057e8
Step 4/7 : ADD . $SRC_DIR
 ---> 51619fc9b4f3
Step 5/7 : RUN cd $SRC_DIR; go build -o main; cp main /app/
 ---> Running in d3601b6a6f7a
libsubfinder/helper/dns.go:15:5: cannot find package "github.com/bogdanovich/dns_resolver" in any of:
	/usr/local/go/src/github.com/bogdanovich/dns_resolver (from $GOROOT)
	/go/src/github.com/bogdanovich/dns_resolver (from $GOPATH)
cp: can't stat 'main': No such file or directory
The command '/bin/sh -c cd $SRC_DIR; go build -o main; cp main /app/' returned a non-zero code: 1

Metadata

Metadata

Assignees

Labels

Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions