浏览代码

update doc to show working example

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

+ 2 - 2
rust/content.md

@@ -39,8 +39,8 @@ COPY . .
 RUN cargo install --path .
 
 FROM debian:buster-slim
-RUN apt-get update && apt-get install -y libssl
-COPY --from=builder /usr/src/myapp /usr/local/bin/myapp
+RUN apt-get update && apt-get install -y libssl-dev
+COPY --from=builder /usr/src/myapp/target/release/myapp /usr/local/bin/myapp
 CMD ["myapp"]
 ```