make the docker image a bit smaller

This commit is contained in:
Paul Gauthier 2023-10-18 13:26:20 -07:00
parent ee3f3a44fd
commit 790f7ddee3

View file

@ -1,5 +1,9 @@
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* && \
pip install --no-cache-dir /aider && rm -rf /aider
COPY . /aider
RUN apt-get update && \
apt-get install --no-install-recommends -y git && \
rm -rf /var/lib/apt/lists/* && \
pip install --no-cache-dir /aider && \
rm -rf /aider
WORKDIR /app
ENTRYPOINT ["aider"]