aider/benchmark/Dockerfile
Paul Gauthier 12491c4983 wip
2024-12-17 17:47:17 -08:00

26 lines
760 B
Docker

FROM buildpack-deps:jammy
# Install Python 3.11
RUN apt-get update && apt-get install -y \
software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install -y \
python3.11 \
python3.11-venv \
python3.11-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Make python3.11 the default python3
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
COPY . /aider
RUN pip3 install --no-cache-dir --upgrade pip
RUN pip3 install --no-cache-dir -e /aider[dev]
RUN git config --global --add safe.directory /aider
WORKDIR /aider