Rust Alpine build misses OpenSSL native packages
Summary: The crate depends on openssl, but the Alpine builder does not install the native headers and pkg-config needed by openssl-sys.
Failure type: native_dependency_missing
Ecosystem: rust
Difficulty: medium

Repository files:
path: Dockerfile
content: FROM rust:1.79-alpine AS build
WORKDIR /src
COPY Cargo.toml .
RUN cargo fetch
COPY src ./src
RUN cargo build --release
path: Cargo.toml
content: [package]
name = "sbd0006"
version = "0.1.0"
edition = "2021"
[dependencies]
openssl = "0.10"
path: src/main.rs
content: fn main() {
    println!("ok");
}

Failure log:
error: failed to run custom build command for `openssl-sys`
Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge.

Build command: docker build -t sabnock/sbd-0006 .
Verify commands:
docker build -t sabnock/sbd-0006 .

Oracle patch:
diff --git a/Dockerfile b/Dockerfile
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,7 @@
 FROM rust:1.79-alpine AS build
 WORKDIR /src
+RUN apk add --no-cache musl-dev pkgconfig openssl-dev
 COPY Cargo.toml .
 RUN cargo fetch
 COPY src ./src
 RUN cargo build --release

Scoring - must touch:
Dockerfile
Scoring - must contain:
path: Dockerfile
text: apk add --no-cache musl-dev pkgconfig openssl-dev
Scoring - must not contain: