mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-24 11:18:00 +00:00
17 lines
457 B
Plaintext
17 lines
457 B
Plaintext
FROM alpine:3.20.3
|
|
|
|
ARG RUST_VERSION=stable
|
|
|
|
RUN apk add bash git cmake make g++ ninja python3 ncurses-static curl lld-dev lld lld-libs libc++-static
|
|
RUN ninja --version
|
|
|
|
COPY build-llvm.sh .
|
|
|
|
RUN bash -c ./build-llvm.sh
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_VERSION}
|
|
ENV PATH=/root/.cargo/bin:/llvm18.0/bin:${PATH}
|
|
|
|
WORKDIR /app
|
|
RUN REVIVE_INSTALL_DIR=$(pwd)/target/release
|