Revert Rust nightly, update debian version
This commit is contained in:
parent
760944cfbe
commit
decbb0e967
10
Dockerfile
10
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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user