1
0
Fork 0
firefox/dom/quota/scripts/qm-try-analysis/Containerfile
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
595 B
Docker

FROM rust:1.74 as build
RUN git clone https://github.com/mozilla/rust-code-analysis && \
cd rust-code-analysis && \
git checkout 56f182ac570 && \
cargo build -p rust-code-analysis-cli --release -v
FROM python:3.9.18-slim
COPY --from=build /rust-code-analysis/target/release/rust-code-analysis-cli /usr/local/bin/
RUN pip install --no-cache-dir poetry==1.7
RUN useradd -ms /bin/bash scripts
USER scripts
WORKDIR /home/scripts/qm-try-analysis
COPY poetry.lock pyproject.toml ./
RUN poetry install --no-dev
COPY ./ .
ENTRYPOINT /bin/bash -c "poetry shell && exec /bin/bash -i"