24 lines
622 B
Docker
24 lines
622 B
Docker
FROM ubuntu:22.04
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y build-essential libffi-dev git pkg-config python3 && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
git clone https://github.com/micropython/micropython.git && \
|
|
cd micropython && \
|
|
git submodule update --init && \
|
|
cd mpy-cross && \
|
|
make && \
|
|
cd .. && \
|
|
cd ports/unix && \
|
|
make && \
|
|
make test && \
|
|
make install && \
|
|
apt-get purge --auto-remove -y build-essential libffi-dev git pkg-config python3 && \
|
|
cd ../../.. && \
|
|
rm -rf micropython
|
|
|
|
CMD ["/usr/local/bin/micropython"]
|
|
|