Skip to content

Dockerfile is missing module and depends for project  #6

@darkb0ts

Description

@darkb0ts

`=> ERROR [builder 12/12] RUN go build -o main . 6.2s

[builder 12/12] RUN go build -o main .:
0.407 go: downloading github.com/gin-gonic/gin v1.7.1
0.409 go: downloading github.com/gin-contrib/gzip v0.0.3
0.409 go: downloading github.com/gin-contrib/cors v1.3.1
0.411 go: downloading github.com/danielkov/gin-helmet v0.0.0-20171108135313-1387e224435e
0.530 go: downloading github.com/sirupsen/logrus v1.8.1
0.541 go: downloading gorm.io/driver/postgres v1.5.6
0.572 go: downloading gorm.io/gorm v1.25.7
0.637 go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
0.637 go: downloading github.com/go-playground/validator/v10 v10.5.0
0.674 go: downloading github.com/joho/godotenv v1.3.0
0.709 go: downloading github.com/restuwahyu13/go-playground-converter v0.0.5
0.715 go: downloading github.com/sendgrid/sendgrid-go v3.8.0+incompatible
0.736 go: downloading golang.org/x/crypto v0.14.0
0.845 go: downloading github.com/google/uuid v1.2.0
0.879 go: downloading github.com/jackc/pgx/v5 v5.4.3
1.354 go: downloading github.com/gin-contrib/sse v0.1.0
1.371 go: downloading github.com/jinzhu/now v1.1.5
1.395 go: downloading github.com/go-playground/universal-translator v0.17.0
1.399 go: downloading github.com/leodido/go-urn v1.2.1
1.459 go: downloading golang.org/x/text v0.13.0
1.500 go: downloading github.com/jackc/pgpassfile v1.0.0
1.511 go: downloading github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a
1.765 go: downloading github.com/jinzhu/inflection v1.0.0
1.776 go: downloading github.com/golang/protobuf v1.5.2
2.008 go: downloading github.com/ugorji/go/codec v1.2.5
2.261 go: downloading gopkg.in/yaml.v2 v2.4.0
2.516 go: downloading github.com/ugorji/go v1.2.5
2.621 go: downloading github.com/go-playground/locales v0.13.0
2.753 go: downloading google.golang.org/protobuf v1.26.0
5.989 /go/pkg/mod/github.com/mattn/[email protected]/isatty_tcgets.go:6:8: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by github.com/mattn/go-isatty); to add:
5.989 go get github.com/mattn/[email protected]
5.989 /go/pkg/mod/github.com/sendgrid/[email protected]+incompatible/rest.go:10:2: missing go.sum entry for module providing package golang.org/x/net/context (imported by github.com/sendgrid/rest); to add:
5.989 go get github.com/sendgrid/[email protected]+incompatible


Dockerfile:35

33 | CGO_ENABLED="0"
34 |
35 | >>> RUN go build -o main .
36 |
37 | # Final Stage

ERROR: failed to solve: process "/bin/sh -c go build -o main ." did not complete successfully: exit code: 1`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions