Files
openobserve/deploy/build/Dockerfile.sccache.amd64
T

15 lines
613 B
Docker

FROM public.ecr.aws/docker/library/rust:bookworm
RUN rustup toolchain install nightly-2024-07-07
RUN rustup default nightly-2024-07-07
RUN rustup target add x86_64-unknown-linux-gnu
RUN rustup component add rustfmt clippy llvm-tools
RUN cargo install --locked sccache
ENV SCCACHE_IDLE_TIMEOUT=1800
ENV RUSTC_WRAPPER=/usr/local/cargo/bin/sccache
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip \
&& unzip protoc-21.12-linux-x86_64.zip -d protoc \
&& cp protoc/bin/protoc /usr/local/bin/ \
&& cp -r protoc/include/google /usr/local/include/