GRA0007 / crab.fit

Enter your availability to find a time that works for everyone!
https://crab.fit
GNU General Public License v3.0
244 stars 31 forks source link

libssl apparently missing from API image built from Dockerfile #315

Open WillNilges opened 7 months ago

WillNilges commented 7 months ago

Description of the bug

Trying to tweak crab fit to do some modifications for a ticketing system. Built the Dockerfile for the API, but hit libssl errors when I run it with Docker Compose:

mesh-fit-1  | ./api: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

To reproduce

$ cd api
$ docker build . --tag crab-fit
$ docker run crab-fit

Expected behavior

Crab fit API starts up and waits for connections

Additional information

No response

WillNilges commented 7 months ago

Part of the issue might be that you're using Buster for the build image, but Bullseye for the container image: https://stackoverflow.com/questions/76508361/getting-error-while-loading-shared-libraries-libssl-so-1-1-when-running-docke?answertab=scoredesc#tab-top

WillNilges commented 7 months ago

I managed to fix it by switching to debian:bookworm-slim and installing openssl