sameerdhoot / wolweb

Web interface for sending Wake-on-lan (magic packet). An HTTP server built using GoLang and uses Bootstrap for UI.
GNU General Public License v3.0
288 stars 74 forks source link

Cannot build docker image #2

Closed karafso closed 2 years ago

karafso commented 2 years ago

When running docker build -t wolweb . I get the following error:

Step 6/16 : RUN go build -o wolweb .
 ---> Running in 83bad7fbe7ac
go: cannot find main module, but found .git/config in /wolweb
    to create a module there, run:
    go mod init

I've created a PR that resolves this for me by adding the suggested command to the Dockerfile

max-frei commented 2 years ago

I also had this issue and adding the init command to the Dockerfile fixed it. Kudos for your PR.

sameerdhoot commented 2 years ago

Merged the pull request.