mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
simplify multi stage dockerfile
This commit is contained in:
parent
f399609caf
commit
cd2aca1d74
1 changed files with 5 additions and 5 deletions
|
@ -1,12 +1,12 @@
|
|||
# Build stage
|
||||
FROM python:3.10-slim AS builder
|
||||
COPY . /aider
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends -y build-essential git && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
pip install --no-cache-dir /aider && \
|
||||
rm -rf /aider
|
||||
apt-get install --no-install-recommends -y build-essential git
|
||||
|
||||
COPY . /aider
|
||||
|
||||
RUN pip install --no-cache-dir /aider
|
||||
|
||||
# Final stage
|
||||
FROM python:3.10-slim
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue