You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -16,31 +16,32 @@ You can also depend directly on `softprops/lambda-rust:latest` for the most rece
16
16
17
17
## 🤸 usage
18
18
19
-
The default docker command will build a release version your rust application under `target/lambda/release` to
20
-
isolate the lambda specific build artifacts from your localhost build artifacts.
19
+
The default docker entrypoint will build a release optimized version your rust artifact under `target/lambda/release` to
20
+
isolate the lambda specific build artifacts from your host-local build artifacts.
21
21
22
22
You will want to volume mount `/code` to the directory containing your cargo project.
23
23
24
24
You can pass additional flags to cargo by setting the `CARGO_FLAGS` docker env variable
25
25
26
26
A typical docker run might look like the following
27
27
28
+
> 💡 the -v (volume mount) flags for `/root/.cargo/{registry,git}` are optional but when supplied, provides a much faster turn around when doing iterative development
0 commit comments