-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 804 Bytes
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# docker build -t rp2040_env .
# docker run -it --rm -v ./src:/home/ubuntu/rp2shell/src --name rp2040_env rp2040_env
# 使用最新ubuntu
FROM ubuntu:latest
WORKDIR /home/ubuntu/rp2shell/src
# 更新 apt 並安裝編譯依賴套件
RUN apt update && apt install -y python3 git tar cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential g++ libstdc++-arm-none-eabi-newlib
RUN cd .. \
&& git clone https://github.com/raspberrypi/pico-sdk.git \
&& cd pico-sdk \
&& git submodule update --init \
&& cd .. \
&& git clone https://github.com/raspberrypi/picotool.git \
&& cd picotool \
&& mkdir build && cd build \
&& export PICO_SDK_PATH=../../pico-sdk/ \
&& cmake .. \
&& make && make install \
&& cd .. \
&& git config --global safe.directory '*' \