From e61b0227559370fbc29bfd52e5df8a0d68edc867 Mon Sep 17 00:00:00 2001 From: Steven Briscoe Date: Tue, 7 Feb 2023 09:31:53 +0000 Subject: [PATCH 1/4] Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ README.md | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..1d625967d9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM docker.io/library/rust:1.67.0 as builder + +WORKDIR /build + +# Copy source code +COPY . . + +ENV RUSTFLAGS="--deny warnings" + +# Build ord +RUN cargo build --bin ord --release + +FROM docker.io/library/debian:bullseye-slim + +WORKDIR /var/lib/ord + +# Copy ord binary from build +COPY --from=builder /build/target/release/ord /usr/local/bin + +ENV RUST_BACKTRACE=1 +ENV RUST_LOG=info + +ENTRYPOINT ["ord"] \ No newline at end of file diff --git a/README.md b/README.md index 2bd963f79d..2660d4005e 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,12 @@ On Debian and Ubuntu, `ord` requires `libssl-dev` when building from source: sudo apt-get install libssl-dev ``` +### Docker + +``` +docker build -t casey/ord . +``` + Syncing ------- From 0f713dd604dcd70b69b216785a407cb0ce35c254 Mon Sep 17 00:00:00 2001 From: Steven Briscoe Date: Wed, 15 Feb 2023 17:52:53 +0000 Subject: [PATCH 2/4] Remove line separator --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index dd206d122e..ba6401d4b5 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,6 @@ On Debian and Ubuntu, `ord` requires `libssl-dev` when building from source: sudo apt-get install libssl-dev ``` -======= You'll also need Rust: ``` From 3a53c7ed497b1b60791b6421586ff3cb5d7f9588 Mon Sep 17 00:00:00 2001 From: raphjaph Date: Thu, 30 Nov 2023 18:30:38 -0300 Subject: [PATCH 3/4] Update Rust version --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1d625967d9..30cf4fe78b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/rust:1.67.0 as builder +FROM docker.io/library/rust:1.74.0 as builder WORKDIR /build @@ -20,4 +20,5 @@ COPY --from=builder /build/target/release/ord /usr/local/bin ENV RUST_BACKTRACE=1 ENV RUST_LOG=info -ENTRYPOINT ["ord"] \ No newline at end of file +ENTRYPOINT ["ord"] + From 51d9056cc7fafc1be529c459eddc30ec73b2bc7b Mon Sep 17 00:00:00 2001 From: raphjaph Date: Thu, 30 Nov 2023 18:47:06 -0300 Subject: [PATCH 4/4] quick fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cf78187ac5..4b935bb96f 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ Once built, the `ord` binary can be found at `./target/release/ord`. Or, you can build a Docker image: ``` -docker build -t casey/ord . +docker build -t ordinals/ord . ``` ### Homebrew