mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-25 15:17:57 +00:00
36f9345c22
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
17 lines
418 B
Plaintext
17 lines
418 B
Plaintext
FROM alpine:3.20.3
|
|
|
|
ARG RUST_VERSION=stable
|
|
|
|
RUN apk add bash git cmake make ninja python3 ncurses-static curl
|
|
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
|