fix: Update Dockerfile HOME env to persist container data in host filesystem

This commit is contained in:
Paul Gauthier 2025-02-04 07:51:00 -08:00 committed by Paul Gauthier (aider)
parent 447660504c
commit 2f4490d059

View file

@ -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 # So git doesn't complain about unusual permissions
RUN git config --system --add safe.directory /app 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 FROM base AS aider-full