use ubuntu user instead of root for uv docker images (#3491)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user