浏览代码

change to generic library

Mike Kinney 5 年之前
父节点
当前提交
3a1628294a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rust/content.md

+ 2 - 2
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.