From cd029a2c2fa752a0b6213bd2a37f7a1827f52eb0 Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Mon, 2 Oct 2023 11:04:16 -0400 Subject: [PATCH] Temporary workaround for Docker build for libcst --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index 79289259..750e4b2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,16 @@ FROM python:3.11 WORKDIR /codemodder COPY . . +# Install Rust (temporary workaround for libcst dependency) +RUN apt-get update && \ + apt-get install -y curl && \ + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ + apt-get remove -y curl && \ + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* +ENV PATH="/root/.cargo/bin:${PATH}" + RUN pip install . ENTRYPOINT ["codemodder"]