Skip to content

Commit 4c7b2b0

Browse files
committed
Dockerfile improvments and fixes
1 parent b87a3a2 commit 4c7b2b0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docker/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ RUN apk update && \
1414
gcc-arm-none-eabi
1515

1616
# Raspberry Pi Pico SDK
17-
RUN git clone https://github.com/raspberrypi/pico-sdk /usr/pico-sdk && \
18-
cd /usr/pico-sdk && \
17+
ARG SDK_PATH=/usr/share/pico_sdk
18+
RUN git clone https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
19+
cd $SDK_PATH && \
1920
git submodule update --init
2021

21-
ENV PICO_SDK_PATH=/usr/pico-sdk
22+
ENV PICO_SDK_PATH=$SDK_PATH
2223

2324
# Picotool installation
24-
RUN git clone -b master https://github.com/raspberrypi/picotool.git /usr/picotool && \
25-
cd /usr/picotool && \
25+
RUN git clone -b master https://github.com/raspberrypi/picotool.git /home/picotool && \
26+
cd /home/picotool && \
2627
mkdir build && \
2728
cd build && \
2829
cmake .. && \
2930
make && \
30-
cp /usr/picotool/build/picotool /bin/picotool && \
31-
rm -rf /usr/picotool
31+
cp /home/picotool/build/picotool /bin/picotool && \
32+
rm -rf /home/picotool

0 commit comments

Comments
 (0)