Containerfile (659B)
1 FROM rust:1.82 as build 2 3 RUN git clone https://github.com/mozilla/rust-code-analysis && \ 4 cd rust-code-analysis && \ 5 git checkout efe9894 && \ 6 cargo build -p rust-code-analysis-cli --release -v 7 8 FROM python:3.9.18-slim 9 10 RUN apt-get update && apt-get install -y wget && \ 11 apt-get clean && rm -rf /var/lib/apt/lists/* 12 13 COPY --from=build /rust-code-analysis/target/release/rust-code-analysis-cli /usr/local/bin/ 14 15 RUN pip install --no-cache-dir poetry==1.7 16 17 RUN useradd -ms /bin/bash scripts 18 USER scripts 19 20 WORKDIR /home/scripts/qm-try-analysis 21 22 COPY ./ . 23 RUN poetry install --only main 24 25 ENTRYPOINT /bin/bash -c "poetry shell && exec /bin/bash -i"