Skip to content

Commit 525a89f

Browse files
authored
Add musl-dev
`gcc` is already a package installed, but it does not install a `libc` candidate with it. `musl-dev` contains the necessary development files (`crti.o`, `crtn.o`, `Scrt1.o`, `libc.so`, etc.). This was prior requested in #68 and is necessary for `proc-macro`s/build scripts to compile, without additional configuration/setup. It also is apparently just a 2% size increase which many consumers are already incurring due to how only effectively bare-metal compilation is possible without it.
1 parent 48640b6 commit 525a89f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile-alpine.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
44

55
RUN apk add --no-cache \
66
ca-certificates \
7+
musl-dev \
78
gcc
89

910
ENV RUSTUP_HOME=/usr/local/rustup \

0 commit comments

Comments
 (0)