rust-lang / rust-lang/docker-rust
Alpine missing libc-dev
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 537
- Forks
- 111
- Avg merge
- 1d 38m
- Merged PRs (30d)
- 4
Description
I tried building executables using the alpine latest and the build failed unless I added RUN apk add libc-dev to my builder image. See https://github.com/misalcedo/kv-store for a sample repo that fails to build. Another one of my repos also failed.
The basic hello-world crate does build in this base image.
Looking at the debian-based images we do install libc-dev there. Is there any reason not to include it for Alpine?
I am new to compiling Rust with MUSL, so there may very well be a better way to do this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in the Alpine builder image using the linked kv-store sample repository. Compare the Alpine image setup with the Debian-based images, where libc-dev is installed, and verify that the sample and another MUSL build work without an extra package-install step.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, rust
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100