mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
26 lines
760 B
Docker
26 lines
760 B
Docker
FROM buildpack-deps:jammy
|
|
|
|
# Install Python 3.12
|
|
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.12 \
|
|
python3.12-venv \
|
|
python3.12-dev \
|
|
python3-pip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Make python3.12 the default python3
|
|
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 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
|