-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build multi-stage Docker images for core "aider" and full "aider-full…
…" versions
- Loading branch information
1 parent
bf4d87d
commit 4fded18
Showing
2 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM python:3.10-slim | ||
FROM python:3.10-slim AS base | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y build-essential git libportaudio2 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
FROM base AS aider-full | ||
|
||
COPY . /aider | ||
RUN pip install --no-cache-dir /aider[help,browser] --extra-index-url https://download.pytorch.org/whl/cpu && \ | ||
rm -rf /aider | ||
|
||
# Unfortunately to build the multi-arch docker image we need `build-essential` for amd64. | ||
# Apparently py-tree-sitter-languages doesn't have a pre-built binary wheel? | ||
# Apparently Playwright needs build-essentials too. | ||
ENTRYPOINT ["aider"] | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y build-essential git libportaudio2 && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install --no-cache-dir /aider --extra-index-url https://download.pytorch.org/whl/cpu && \ | ||
FROM base AS aider | ||
|
||
COPY . /aider | ||
RUN pip install --no-cache-dir /aider --extra-index-url https://download.pytorch.org/whl/cpu && \ | ||
rm -rf /aider | ||
|
||
WORKDIR /app | ||
ENTRYPOINT ["aider"] | ||
|
||
ENTRYPOINT ["aider"] |