Open codeasashu opened 4 years ago
Running docker build should build the binary
docker build outputs following error:
docker build
Sending build context to Docker daemon 501.8kB Step 1/7 : FROM golang:1.8 ---> 0d283eb41a92 Step 2/7 : MAINTAINER mlabouardy <mohamed@labouardy.com> ---> Running in ec5745dbc752 Removing intermediate container ec5745dbc752 ---> a5953c73a31b Step 3/7 : WORKDIR /go/src/github.com/mlabouardy/swaggymnia/ ---> Running in 8ae3e6f34162 Removing intermediate container 8ae3e6f34162 ---> 02774e453a00 Step 4/7 : COPY . . ---> 07e780679e78 Step 5/7 : RUN go get -v ---> Running in b4d746fddaaa github.com/ghodss/yaml (download) Fetching https://gopkg.in/yaml.v2?go-get=1 Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200) get "gopkg.in/yaml.v2": found meta tag main.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1 gopkg.in/yaml.v2 (download) github.com/urfave/cli (download) github.com/cpuguy83/go-md2man (download) package github.com/cpuguy83/go-md2man/v2/md2man: cannot find package "github.com/cpuguy83/go-md2man/v2/md2man" in any of: /usr/local/go/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOROOT) /go/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOPATH) The command '/bin/sh -c go get -v' returned a non-zero code: 1
docker build -t swaggymnia .
Expected behavior
Running docker build should build the binary
Current behavior
docker build
outputs following error:Steps to reproduce the behavior
docker build -t swaggymnia .