Skip to content

Commit 03bdaa8

Browse files
authored
Merge pull request #64 from Luminoth/master
Add path dependency example documentation
2 parents 7e99c0c + e2a1a00 commit 03bdaa8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ $ docker run --rm \
5656
softprops/lambda-rust
5757
```
5858

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+
5972
## ⚓ using hooks
6073

6174
If you want to customize certain parts of the build process, you can leverage hooks that this image provides.

0 commit comments

Comments
 (0)