diff --git a/Dockerfile b/Dockerfile index 06e9cb74..e7c359e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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