Skip to content

Commit

Permalink
Revert Rust nightly, update debian version
Browse files Browse the repository at this point in the history
  • Loading branch information
knorrium committed Nov 12, 2024
1 parent 760944c commit decbb0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM debian:bookworm-slim AS base
FROM debian:latest AS base

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

RUN apt update -qy
RUN apt install -qy librocksdb-dev curl
RUN apt update -qy && \
apt install -qy librocksdb-dev curl

FROM base as build

Expand All @@ -13,12 +13,12 @@ ENV RUSTUP_HOME=/rust
ENV CARGO_HOME=/cargo
ENV PATH=/cargo/bin:/rust/bin:$PATH

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

WORKDIR /build
COPY . .

RUN cargo +nightly build --release -Z sparse-registry --bin electrs
RUN cargo build --release --bin electrs

FROM base as deploy

Expand Down

0 comments on commit decbb0e

Please sign in to comment.