use ubuntu user instead of root for uv docker images (#3491)

This commit is contained in:
Wing Lian
2026-03-12 20:41:13 -04:00
committed by GitHub
parent 819b157c7b
commit 79908b3c6e
4 changed files with 46 additions and 20 deletions

View File

@@ -43,6 +43,10 @@ RUN git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
git config --get remote.origin.fetch && \
git config --global credential.helper store
COPY .axolotl-complete.bash /root/.axolotl-complete.bash
RUN chmod +x /root/.axolotl-complete.bash && \
echo 'source /root/.axolotl-complete.bash' >> ~/.bashrc
COPY .axolotl-complete.bash /home/ubuntu/.axolotl-complete.bash
RUN chmod +x /home/ubuntu/.axolotl-complete.bash && \
echo 'source /home/ubuntu/.axolotl-complete.bash' >> /home/ubuntu/.bashrc
RUN chown -R ubuntu:ubuntu /workspace /home/ubuntu
USER ubuntu