mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
51 lines
1.5 KiB
Docker
51 lines
1.5 KiB
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 Node.js and dependencies
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
|
apt-get install -y nodejs && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
mkdir -p /npm-install && \
|
|
cd /npm-install && \
|
|
npm init -y && \
|
|
npm install \
|
|
jest \
|
|
@babel/core@7.25.2 \
|
|
@exercism/babel-preset-javascript@0.2.1 \
|
|
@exercism/eslint-config-javascript@0.6.0 \
|
|
@types/jest@29.5.12 \
|
|
@types/node@20.12.12 \
|
|
babel-jest@29.6.4 \
|
|
core-js@3.37.1 \
|
|
eslint@8.49.0
|
|
|
|
# Install Go
|
|
RUN curl -OL https://golang.org/dl/go1.21.5.linux-amd64.tar.gz && \
|
|
tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz && \
|
|
rm go1.21.5.linux-amd64.tar.gz
|
|
ENV PATH="/usr/local/go/bin:${PATH}"
|
|
|
|
# Install Rust
|
|
ADD https://sh.rustup.rs /tmp/rustup.sh
|
|
RUN chmod +x /tmp/rustup.sh && /tmp/rustup.sh -y && rm /tmp/rustup.sh
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
COPY . /aider
|
|
RUN pip3 install --no-cache-dir --upgrade pip uv
|
|
RUN uv pip install --system --no-cache-dir -e /aider[dev]
|
|
RUN git config --global --add safe.directory /aider
|
|
WORKDIR /aider
|