mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
Changed RUN to ENTRYPOINT
This commit is contained in:
parent
f068e49501
commit
f954bc2ecc
2 changed files with 3 additions and 3 deletions
|
@ -2,6 +2,6 @@ FROM python:3.10-slim
|
||||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||||
RUN pip install --upgrade pip && pip install aider-chat
|
RUN pip install --upgrade pip && pip install aider-chat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["aider"]
|
ENTRYPOINT ["aider"]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,14 @@ You can run aider via docker without doing any local installation, like this:
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run -it --volume `pwd`:/app paulgauthier/aider aider
|
docker run -it --volume `pwd`:/app paulgauthier/aider
|
||||||
```
|
```
|
||||||
|
|
||||||
You will also need to pass in your `OPENAI_API_KEY`, which can be done with the `--openai-api-key` argument:
|
You will also need to pass in your `OPENAI_API_KEY`, which can be done with the `--openai-api-key` argument:
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run -it --volume `pwd`:/app paulgauthier/aider aider --openai-api-key $OPENAI_API_KEY
|
docker run -it --volume `pwd`:/app paulgauthier/aider --openai-api-key $OPENAI_API_KEY
|
||||||
```
|
```
|
||||||
|
|
||||||
You should run the above commands from the root of your git repo.
|
You should run the above commands from the root of your git repo.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue