From 3a1628294a2e363d0978e42c4c859f852f41da64 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Tue, 14 Jan 2020 19:45:11 -0800 Subject: [PATCH] change to generic library --- rust/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/content.md b/rust/content.md index 455604c32..211ac8784 100644 --- a/rust/content.md +++ b/rust/content.md @@ -39,12 +39,12 @@ COPY . . RUN cargo install --path . FROM debian:buster-slim -RUN apt-get update && apt-get install -y libssl-dev +RUN apt-get update && apt-get install -y extra-runtime-dependencies COPY --from=builder /usr/src/myapp/target/release/myapp /usr/local/bin/myapp CMD ["myapp"] ``` -Note: Some shared libraries may need to be installed as shown in the installation of the libssl line above. +Note: Some shared libraries may need to be installed as shown in the installation of the `extra-runtime-dependencies` line above. This method will create an image that is less than 200mb. If you switch to using the Alpine-based rust image, you might be able to save another 60mb.