Giter Site home page Giter Site logo

Comments (4)

jumanjiman avatar jumanjiman commented on June 8, 2024

use strace and ldd to check if your binary requires glibc.
if so, either recompile your binary with alpine toolset or include glibc (and any other required libs) in the image (or statically compile your binary).

tips are in #11 plus various blog posts about ldd and docker.

hth.

from docker-alpine.

sumyuga avatar sumyuga commented on June 8, 2024

Thanks for your answer. I've found out that missing some libs, here they are:
libdl.so.2 => not found
libm.so.6 => not found
libpthread.so.0 => not found
libc.so.6 => not found
The question is I couldn't add glibc via apk manager – there is only libc but this one doesn't add missing libs. Should I add glib manually?

from docker-alpine.

jumanjiman avatar jumanjiman commented on June 8, 2024

The question is I couldn't add glibc via apk manager – there is only libc but this one doesn't add missing libs.

fundamentally, alpine is based on musl-libc, which differs from others libc implementations like glibc.

Should I add glib manually?

you can add glibc manually like in #11 (comment) but...what if the next version of racket needs additional dynamic libs? how will you handle updates to glibc?

personally i'd try to build racket from source, preferably as a static bin that you could then copy into a runtime image. i'm not familiar with racket, so i don't even know if that's possible, but it should be.

e.g., https://github.com/jumanjiman/docker-caddy shows a simple approach to build a golang binary statically, then copy it into another image.

you could also try contacting racket upstream to see if they can add official binaries for musl-libc.

from docker-alpine.

sumyuga avatar sumyuga commented on June 8, 2024

Thanks a lot for your comprehensive reply. I'll try to build and copy static binary.

from docker-alpine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.