Skip to content

Commit

Permalink
feat(docker): add Dockerfile to compile orogene in a rust-debian-book…
Browse files Browse the repository at this point in the history
…worm container (#288)
  • Loading branch information
proofy committed Sep 28, 2023
1 parent a4dbe24 commit 1057597
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 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"]
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit 1057597

Please sign in to comment.