mirror of
https://github.com/Aider-AI/aider
synced 2026-04-25 17:15:07 +02:00
simplify multi stage dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user