Code: Select all
FROM alpine:3.4
RUN apk add --no-cache git make
RUN cd /tmp ; \
git clone https://github.com/micropython/micropython.git ; \
cd micropython ; \
git submodule init ; \
git submodule update
RUN apk add --no-cache pkgconfig python libffi-dev gcc musl-dev autoconf automake libtool
# install sys/cdefs.h
# RUN apk add --no-cache bsd-compat-headers
RUN cd /tmp/micropython/unix ; \
make deplibs
RUN cd /tmp/micropython/unix ; \
make
# disable -Werror when including sys/cdefs.h
# RUN cd /tmp/micropython/unix ; \
# make CFLAGS=" -Wno-error=switch "