Hey! I'm deploying a Rust app with Docker, my Dockerfile looks like this:
FROM rust:1.71 as build
ARG FEATURES
WORKDIR /app
# Done for dependency caching
COPY Cargo.toml Cargo.lock ./
RUN mkdir -p /app/src && touch /app/src/lib.rs && cargo build --release
COPY src ./src
# Only compile source code
RUN cargo build --release --offline $(if [ -n "$FEATURES" ]; then echo "--features $FEATURES"; fi)
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /app/target/release/app .
CMD ["./app"]
This currently works, however upon trying to update the build image to rust:1.72, it compiles but fails to start up:
./app: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
Did something change in Rust 1.72, at least for its Docker image, that would cause this?