-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Image not Working #33
Comments
Will release v3 now with this fix. |
release v3: Docker Image still not Working |
Not exactly. The binary was being compiled with dynamic link to libc which calls those libs. We've already resolved that by building the binary statically by disabling cgo. |
Okay, so this is a multifaceted issue, and not limited to just the Docker image. The Docker image is how I found it.
Simple
go build
doesn't work because of the presence of thewebdav/
directory while the module name is alsowebdav
. Thego build
command will complain withgo build: build output "webdav" already exists and is a directory
. Thego build
command can be fooled into proceeding with the build by issuinggo build -o webdav main.go
, at which it'll (hilariously) create the binary inside thewebdav
directory as suchwebdav/command-line-arguments
. Yes, the binary name iscommand-line-arguments
. This wasn't an issue before c5f3907 because back then the main package was within a directory namedwebdav
, so there was no name conflict.Now Docker... the
Dockerfile
. So theDockerfile
copies thewebdav
to/webdav
, which we now know is a directory and not a binary.webdav/Dockerfile
Line 9 in ab0334f
Then it tries to execute it:
webdav/Dockerfile
Line 11 in ab0334f
which causes Docker to log
standard_init_linux.go:211: exec user process caused "no such file or directory"
. That's because it's trying to execute a directory.The text was updated successfully, but these errors were encountered: