diff --git a/.dockerignore b/.dockerignore new file mode 120000 index 0000000000..3e4e48b0b5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.gitignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..6a2a9b7347 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM rust:1.75.0-bookworm as builder + +WORKDIR /usr/src/ord + +COPY . . + +RUN cargo build --bin ord --release + +FROM debian:bookworm-slim + +COPY --from=builder /usr/src/ord/target/release/ord /usr/local/bin + +ENV RUST_BACKTRACE=1 +ENV RUST_LOG=info diff --git a/README.md b/README.md index e0a1d96a9d..31f53f4125 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,14 @@ Once built, the `ord` binary can be found at `./target/release/ord`. `ord` requires `rustc` version 1.67.0 or later. Run `rustc --version` to ensure you have this version. Run `rustup update` to get the latest stable release. +### Docker + +A Docker image can be built with: + +``` +docker build -t ordinals/ord . +``` + ### Homebrew `ord` is available in [Homebrew](https://brew.sh/):