Revert Rust nightly, update debian version

This commit is contained in:
Felipe Knorr Kuhn 2024-11-11 21:42:26 -08:00
parent 760944cfbe
commit decbb0e967
No known key found for this signature in database
GPG Key ID: 79619B52BB097C1A

View File

@ -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