Skip to content

Commit

Permalink
doc(README): 更新Dockerfile中使用样例
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros authored Nov 7, 2022
1 parent e68bb51 commit 30fefe8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,24 @@ RUN apt update \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& apt-get clean && apt autoclean
```
一键换源

```
FROM ubuntu:22.04
# 一键换源
RUN apt update \
&& apt install wget python3 python3-yaml -y python3-distro\
&& echo "chooses:\n" > fish_install.yaml \
&& echo "- {choose: 5, desc: '一键安装:ROS(支持ROS和ROS2,树莓派Jetson)'}\n" >> fish_install.yaml \
&& echo "- {choose: 2, desc: 更换源继续安装}\n" >> fish_install.yaml \
&& echo "- {choose: 1, desc: 清理三方源}\n" >> fish_install.yaml \
&& wget http://fishros.com/install -O fishros && /bin/bash fishros \
# 进行最后的清理
&& rm -rf fish_install.yaml \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& apt-get clean && apt autoclean
```

## 贡献指南

Expand Down

0 comments on commit 30fefe8

Please sign in to comment.