Skip to content

Commit 8549607

Browse files
committed
Add initial Dockerfile
1 parent c06efc4 commit 8549607

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM debian:10-slim
2+
ARG VERSION=6.2.0
3+
4+
RUN apt update
5+
RUN DEBIAN_FRONTEND=noninteractive apt install -y build-essential pkg-config libffi-dev wget git gettext python3
6+
RUN git clone https://github.com/adafruit/circuitpython.git
7+
WORKDIR /circuitpython
8+
RUN git checkout $VERSION
9+
RUN git submodule sync --quiet --recursive
10+
RUN git submodule update --init
11+
RUN make -C mpy-cross
12+
RUN cd ports/unix && make axtls && make micropython && make install
13+
RUN apt-get purge --auto-remove -y build-essential pkg-config libffi-dev wget git gettext python3
14+
RUN rm -rf /circuitpython
15+
WORKDIR /
16+
CMD ["/usr/local/bin/micropython"]

0 commit comments

Comments
 (0)