PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

exec format error #11

Closed explodecomputer closed 6 years ago

explodecomputer commented 6 years ago

The image builds fine and runs but exits immediately. docker logs gives:

❯ docker logs 3f55e51770b9
standard_init_linux.go:178: exec user process caused "exec format error"

Any idea what might be the issue?

Thanks

guyathomas commented 6 years ago

Are you trying to run this on a device with a different architecture? i.e ARM on a Raspberry Pi?

PierreZ commented 6 years ago

Hello!

I think (like @guythomas), you are trying to run a binary built for another platform that the one you are running.

If so, you can easily add GOOS and GOARCH env variables before running go generate to cross-compile

explodecomputer commented 6 years ago

Hi both, thanks very much for responding. I was trying to run it on rpi, not sure what I was thinking to not check architecture of the binaries. Will do this, thanks again.