mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
set perms on /.cache
This commit is contained in:
parent
dd166a1492
commit
48e831d651
1 changed files with 6 additions and 4 deletions
|
@ -4,12 +4,14 @@ RUN apt-get update && \
|
|||
apt-get install --no-install-recommends -y build-essential git libportaudio2 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir /.aider && chmod a+rwx /.aider
|
||||
# Permission kludges to support `docker run --user xxx`
|
||||
RUN mkdir /.aider /app /.cache
|
||||
RUN chmod a+rwx /.aider /app /.cache
|
||||
|
||||
# So git doesn't complain about unusual permissions with `docker run --user xxx`
|
||||
RUN mkdir /app && chmod a+rwx /app && git config --system --add safe.directory /app
|
||||
# So git doesn't complain about unusual permissions
|
||||
RUN git config --system --add safe.directory /app
|
||||
|
||||
# So pip installs work even with `docker run --user xxx`
|
||||
# So pip installs work
|
||||
RUN chmod a+rwx /usr/local/lib/python3.10/site-packages /usr/local/*
|
||||
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue