Changed RUN to ENTRYPOINT

This commit is contained in:
Paul Gauthier 2023-10-18 08:27:32 -07:00
parent f068e49501
commit f954bc2ecc
2 changed files with 3 additions and 3 deletions

View file

@ -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"]

View file

@ -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.