mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Update Dockerfile HOME env to persist container data in host filesystem
This commit is contained in:
parent
447660504c
commit
2f4490d059
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ RUN mkdir -p /home/appuser/.aider /home/appuser/.cache /home/appuser/pw-browsers
|
|||
|
||||
# So git doesn't complain about unusual permissions
|
||||
RUN git config --system --add safe.directory /app
|
||||
ENV HOME=/home/appuser
|
||||
|
||||
# This puts the container's ~/.aider into the host's project directory (usually host's cwd).
|
||||
# That way caches, version checks, etc get stored in the host filesystem not
|
||||
# simply discarded every time the container exits.
|
||||
ENV HOME=/app
|
||||
|
||||
#########################
|
||||
FROM base AS aider-full
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue