We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e99c0c + e2a1a00 commit 03bdaa8Copy full SHA for 03bdaa8
README.md
@@ -56,6 +56,19 @@ $ docker run --rm \
56
softprops/lambda-rust
57
```
58
59
+For more custom codebases, the '-w' argument can be used to override the working directory.
60
+This can be especially useful when using path dependencies for local crates.
61
+
62
+```sh
63
+$ docker run --rm \
64
+ -v ${PWD}/lambdas/mylambda:/code/lambdas/mylambda \
65
+ -v ${PWD}/libs/mylib:/code/libs/mylib \
66
+ -v ${HOME}/.cargo/registry:/root/.cargo/registry \
67
+ -v ${HOME}/.cargo/git:/root/.cargo/git \
68
+ -w /code/lambdas/mylambda \
69
+ softprops/lambda-rust
70
+```
71
72
## ⚓ using hooks
73
74
If you want to customize certain parts of the build process, you can leverage hooks that this image provides.
0 commit comments