Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (34 sloc) 1.14 KB
# Usage:
#
# Note: if you're in Linux you need to run socker with 'sudo'.
# But honestly if you're on linux you should just save yourself
# gigabytes of downloads and disk space and build Espruino directly.
#
# 1: Build the container image
#
# docker build . -t img_name
#
# 2: Run container image so it builds espruino
#
# docker run -e BOARD='PICO_R1_3' --name container_name img_name
#
# This will run the container and save build results into the container's filesystem.
# Near the end of the build the filename will be displayed, for example espruino_2v00_pico_1r3.bin
#
# 3: Copy build results from the container into your filesystem
#
# docker cp container_name:espruino/espruino_2v00_pico_1r3.bin ./
#
FROM python:3
COPY . /espruino
WORKDIR /espruino
# Workaround add some stuff that the provision script uses
# in here so it doesn't have to use sudo
RUN apt-get update
RUN apt-get install -qq -y python3-pip
RUN pip install pyserial
RUN pip install nrfutil
# This ensures ALL dependencies are installed beforehand
RUN bash -c "source scripts/provision.sh ALL"
ENV RELEASE 1
CMD ["bash", "-c", "source scripts/provision.sh ALL && make"]
You can’t perform that action at this time.