2019-07-21 00:01:17 +02:00
|
|
|
FROM python:3.7-alpine
|
2018-10-12 02:44:02 +02:00
|
|
|
|
2019-07-21 00:29:56 +02:00
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2019-07-25 05:21:56 +02:00
|
|
|
RUN apk update && apk add alpine-sdk coreutils curl gettext git git-lfs openssh rsync wget zip
|
2019-07-21 00:29:56 +02:00
|
|
|
|
2019-07-21 00:01:17 +02:00
|
|
|
RUN pip install pipenv
|
2019-07-21 00:29:56 +02:00
|
|
|
|
|
|
|
### Get a local copy of CircuitPython and its dependencies
|
|
|
|
# Our absolute baseline is 4.0.0, which (as of writing) shares MPY compat
|
|
|
|
# with all future versions. Our baseline will need to update as MPY compat
|
|
|
|
# changes
|
|
|
|
RUN git clone --branch 4.0.0 --depth 1 https://github.com/adafruit/CircuitPython /opt/circuitpython
|
|
|
|
RUN git -C /opt/circuitpython submodule update --init
|
|
|
|
|
|
|
|
### Build the MPY compiler
|
|
|
|
RUN make -C /opt/circuitpython/mpy-cross
|
|
|
|
|
|
|
|
ENV PATH=/opt/circuitpython/mpy-cross:${PATH}
|