mbrubeck / agate

Very simple server for the Gemini hypertext protocol
Apache License 2.0
579 stars 37 forks source link

Can't run precompiled binary on Docker container that containes Alpine Linux #270

Closed youshitsune closed 1 year ago

youshitsune commented 1 year ago

I've installed rust, rustup and cargo. But, the agate won't start. It throws this error:

thread 'main' panicked at 'range start index 1 out of range for slice of length 0', src/main.rs:244:31

You can recreate it by pulling docker image:

docker pull ghcr.io/youshitsune/gds:size_optimization
mbrubeck commented 1 year ago

The pre-compiled Linux binaries are all for GNU libc targets, so they will not work on platforms like Alpine Linux that use musl instead of glibc. You will need to compile Agate from source for use on Alpine Linux.

youshitsune commented 1 year ago

Thank you!