diff --git a/README.md b/README.md index f6310f1..5ffe95c 100644 --- a/README.md +++ b/README.md @@ -38,5 +38,16 @@ Clone the repository and run cargo run ``` +# Build inside Docker +Be sure you to replace `$PATH_TO_REPO` with the path to this cloned repo on your filesystem. +``` +sudo docker build --no-cache . -t lemoa:latest +sudo docker run -v $PATH_TO_REPO:/home/lemoa/lemoa_volume -it lemoa:latest bash +cd lemoa_volume/ +cargo build +``` +The binary will also be available on your host system since $PATH_TO_REPO is mounted as a shared volume between docker and host. + + # License Lemoa is licensed under the [**GNU General Public License**](https://www.gnu.org/licenses/gpl.html): You can use, study and share it as you want.