diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d2385b67 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM rust:1-bookworm as builder +WORKDIR /usr/src/orogene +COPY . . +RUN cargo install --path . +FROM scratch +COPY --from=builder /usr/src/orogene/target/release/oro /oro +CMD ["oro"] diff --git a/README.md b/README.md index a548084e..9645ffe5 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,17 @@ docs](https://orogene.dev/book/), or run `$ oro help`. If you just want to do something similar to `$ npm install`, you can run `$ oro apply` in your project and go from there. +### Compiling with Docker + +```sh +$ docker build -t orogene . +``` +Test it with + +```sh +docker run -it --rm --name oro orogene /usr/src/orogene/target/release/oro --version +``` + ### Performance Orogene is very fast and uses significantly fewer resources than other