Last active
May 31, 2023 13:57
-
-
Save pavelaron/e554c0e6cfbb1aeca205b7690ed798b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y git | |
RUN apt-get install -y gcc-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi | |
RUN apt-get install -y build-essential | |
RUN apt-get install -y cmake | |
RUN apt-get install -y python3 python3-pip | |
RUN apt-get install -y unzip | |
RUN apt-get install -y curl | |
RUN pip3 install littlefs-python | |
RUN curl -sL https://deb.nodesource.com/setup_18.x -o ~/nodesource_setup.sh | |
RUN bash ~/nodesource_setup.sh | |
RUN apt install -y nodejs | |
RUN npm install -g pnpm | |
RUN git clone --depth 1 https://github.com/micropython/micropython.git | |
WORKDIR /micropython | |
RUN git submodule update --init lib/mbedtls lib/pico-sdk lib/tinyusb | |
WORKDIR /micropython/lib/pico-sdk | |
RUN git submodule update --init | |
WORKDIR /micropython | |
RUN make -C mpy-cross | |
RUN mv /micropython/mpy-cross/build/mpy-cross /usr/local/bin/mpy-cross | |
RUN chmod +x /usr/local/bin/mpy-cross | |
WORKDIR / | |
RUN curl -L -o dir2uf2.zip https://api.github.com/repos/Gadgetoid/dir2uf2/zipball | |
RUN unzip dir2uf2.zip -d . | |
RUN mv $(ls . | grep "^Gadgetoid-dir2uf2-")/dir2uf2 /usr/local/bin/dir2uf2 | |
RUN chmod +x /usr/local/bin/dir2uf2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment