Skip to content

Commit

Permalink
Temporary workaround for Docker build for libcst
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Oct 2, 2023
1 parent 23fd523 commit cd029a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit cd029a2

Please sign in to comment.