micropython-unix/Dockerfile

15 lines
443 B
Docker
Raw Normal View History

2022-03-15 19:52:26 +00:00
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y build-essential git libffi-dev pkg-config python3 wget \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 -b v1.18 https://github.com/micropython/micropython.git /src
WORKDIR /src/mpy-cross
RUN make
WORKDIR /src/ports/unix
RUN make submodules
RUN make
ENTRYPOINT /src/ports/unix/micropython
CMD modules/main.py