CommonCrawler
CommonCrawler copied to clipboard
Having trouble building
docker build -t commoncrawler
returns
Sending build context to Docker daemon 15.68MB
Step 1/9 : FROM golang
---> 2421885b04da
Step 2/9 : ENV GO111MODULE=on
---> Using cache
---> 385def581eff
Step 3/9 : LABEL maintainer="Chris Cates <[email protected]>, Onuwa Nnachi Isaac <[email protected]>"
---> Using cache
---> 3b73fcb759b7
Step 4/9 : WORKDIR /app
---> Using cache
---> 199d61a88ad6
Step 5/9 : COPY . .
---> e1580e665263
Step 6/9 : RUN go mod init
---> Running in c969b25db63f
go: cannot determine module path for source directory /app (outside GOPATH, module path must be specified)
Example usage:
'go mod init example.com/m' to initialize a v0 or v1 module
'go mod init example.com/m/v2' to initialize a v2 module
Run 'go help mod init' for more information.
The command '/bin/sh -c go mod init' returned a non-zero code: 1