mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24: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
|
# Build stage
|
||||||
FROM python:3.10-slim AS builder
|
FROM python:3.10-slim AS builder
|
||||||
COPY . /aider
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install --no-install-recommends -y build-essential git && \
|
apt-get install --no-install-recommends -y build-essential git
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
|
||||||
pip install --no-cache-dir /aider && \
|
COPY . /aider
|
||||||
rm -rf /aider
|
|
||||||
|
RUN pip install --no-cache-dir /aider
|
||||||
|
|
||||||
# Final stage
|
# Final stage
|
||||||
FROM python:3.10-slim
|
FROM python:3.10-slim
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue