harleylang / hydroxide-docker

Docker configuration examples for the hydroxide package
MIT License
16 stars 3 forks source link

Docker build fails #2

Closed Vashidu closed 4 years ago

Vashidu commented 4 years ago

running the docker build, and getting this as a result

 ---> 79c1b616e3d3
Step 4/16 : RUN git -C /go/src/ clone https://github.com/emersion/hydroxide/
 ---> Running in f7c6c05c782c
Cloning into 'hydroxide'...
Removing intermediate container f7c6c05c782c
 ---> 49c09edf1406
Step 5/16 : RUN go get -d ./go/src/hydroxide/cmd/hydroxide/...
 ---> Running in 0aa62f00dfcf
pattern ./go/src/hydroxide/cmd/hydroxide/...: lstat ./go/src/hydroxide/cmd/hydroxide/: no such file or directory
The command '/bin/sh -c go get -d ./go/src/hydroxide/cmd/hydroxide/...' returned a non-zero code: 1
harleylang commented 4 years ago

Thanks a bunch Vashidu for reporting this error. I pruned my docker system and was able to recreate this issue. It is due to an incorrect directory reference at step 4 and 5. At step 4/16, the Dockerfile is at /go not /. My latest commit should fix this issue, please let me know if the issue persists.