forked from KMKfw/kmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (14 loc) · 664 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (14 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.7-alpine
RUN mkdir -p /app
WORKDIR /app
RUN apk update && apk add alpine-sdk coreutils curl gettext git git-lfs openssh rsync wget zip
RUN pip install pipenv
### 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}