mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
restored build-essentials in docker image
This commit is contained in:
parent
a23355a217
commit
c1bb07269a
1 changed files with 10 additions and 15 deletions
|
@ -1,21 +1,16 @@
|
|||
# Build stage
|
||||
FROM python:3.10-slim AS builder
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends -y build-essential git
|
||||
FROM python:3.10-slim
|
||||
|
||||
COPY . /aider
|
||||
|
||||
RUN pip install --no-cache-dir /aider[hf-embed] --extra-index-url https://download.pytorch.org/whl/cpu
|
||||
# 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.
|
||||
|
||||
# Final stage
|
||||
FROM python:3.10-slim
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends -y git libportaudio2 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
||||
COPY --from=builder /usr/local/bin/aider /usr/local/bin/aider
|
||||
|
||||
apt-get install --no-install-recommends -y build-essential git libportaudio2 && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
pip install --no-cache-dir /aider[hf-embed] --extra-index-url https://download.pytorch.org/whl/cpu && \
|
||||
rm -rf /aider
|
||||
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["aider"]
|
||||
ENTRYPOINT ["aider"]
|
Loading…
Add table
Add a link
Reference in a new issue