Commit graph

24 commits

Author SHA1 Message Date
Paul Gauthier
b18dbf4772 renamed hf-embed -> help 2024-07-16 11:03:01 +01:00
Paul Gauthier
c1bb07269a restored build-essentials in docker image 2024-07-11 06:18:28 +01:00
Paul Gauthier
8b0e941c4d simpler docker build 2024-07-10 19:36:30 +01:00
Paul Gauthier
9e3eb4fce5 move llama core into hf-embed 2024-07-10 17:44:26 +01:00
Paul Gauthier
f688c18b65 offer to install aider[hf] 2024-07-10 16:20:06 +01:00
Paul Gauthier
cd2aca1d74 simplify multi stage dockerfile 2024-07-10 15:26:43 +01:00
Paul Gauthier (aider)
60ad0dee25 Implemented a multi-stage Dockerfile to reduce the final image size by removing build dependencies. 2024-07-09 18:06:54 +01:00
Paul Gauthier
e307be1a9c refactored into get_requirements 2024-07-09 16:39:54 +01:00
Paul Gauthier
c9aa36d7b6 Put build-essential back into dockerfile 2023-10-31 14:52:04 -07:00
Paul Gauthier
5280549c33 Upgrade to grep-ast 0.2.2 to streamline tree-sitter install 2023-10-31 11:28:34 -07:00
Paul Gauthier
7aa59c1331 added build-essential to dockerfile 2023-10-30 09:05:22 -07:00
Paul Gauthier
0030615578 removed universal-ctags from docker image 2023-10-29 13:10:31 -07:00
Paul Gauthier
b2b78a98ee Added libportaudio2 to the docker container 2023-10-18 13:38:41 -07:00
Paul Gauthier
49b9034629 Added universal ctags to the docker image 2023-10-18 13:30:49 -07:00
Paul Gauthier
790f7ddee3 make the docker image a bit smaller 2023-10-18 13:26:20 -07:00
Paul Gauthier
ee3f3a44fd aider: Refactored Dockerfile to combine RUN commands, use --no-cache-dir option when installing Python packages, and remove unnecessary pip install --upgrade pip command.
# Aider chat conversation:

ASSISTANT: Yes, there are a few more things we can do to clean up the Dockerfile:

1. We can combine the `RUN` commands into a single command to reduce the number of layers in the Docker image. This can make the image smaller and faster to build.

2. We can use the `--no-cache-dir` option when installing Python packages with pip. This will prevent pip from caching downloaded packages, which can save space in the Docker image.

3. We can remove the `pip install --upgrade pip` command. The Python Docker images are regularly updated, so the version of pip included in the image is usually fairly recent.

Here's how we can make these changes:

```dockerfile
docker/Dockerfile
<<<<<<< HEAD
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
COPY . /aider
RUN pip install --upgrade pip && pip install /aider && rm -rf /aider
WORKDIR /app
ENTRYPOINT ["aider"]
=======
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
WORKDIR /app
ENTRYPOINT ["aider"]
>>>>>>> updated
```

Please note that these changes will make the Docker image smaller and faster to build, but they won't affect the functionality of the application.
2023-10-18 13:19:22 -07:00
Paul Gauthier
a6a49b13bb Remove the /aider directory after installing the package. 2023-10-18 13:19:21 -07:00
Paul Gauthier
4a10087a6e Moved docker docs into docs/ 2023-10-18 09:31:17 -07:00
Paul Gauthier
be201657b8 copy 2023-10-18 09:20:36 -07:00
Paul Gauthier
55d33efbfb copy 2023-10-18 09:18:43 -07:00
Paul Gauthier
fc92862017 enable pypi again 2023-10-18 09:15:40 -07:00
Paul Gauthier
b69edcfcba prep docker build to run in github action 2023-10-18 08:45:02 -07:00
Paul Gauthier
f954bc2ecc Changed RUN to ENTRYPOINT 2023-10-18 08:27:32 -07:00
Paul Gauthier
f068e49501 added experimental docker image 2023-10-18 08:25:17 -07:00