Espruino/Dockerfile-esp8266
Uri Shaked 0d030d51f5 Create a Dockerfile for the ESP8266 build
This docker file contains both the Espressif SDK and the xtensa tools, and makes it super-easy to create builds for ESP8266
2016-03-13 23:53:55 +02:00

24 lines
710 B
Plaintext

FROM ubuntu:14.04
RUN apt-get update && apt-get install -y software-properties-common && apt-get update \
&& add-apt-repository ppa:terry.guo/gcc-arm-embedded \
&& apt-get update \
&& apt-get install -y git gcc-arm-none-eabi build-essential python curl
RUN git clone https://github.com/espruino/Espruino espruino
RUN curl -Ls http://s3.voneicken.com/xtensa-lx106-elf.tgx | tar Jxf -
RUN curl -Ls http://s3.voneicken.com/esp_iot_sdk_v1.5.0.tgx | tar Jxf -
WORKDIR /espruino
ENV ESP8266_BOARD=1
ENV ESP8266_SDK_ROOT=/esp_iot_sdk_v1.5.0
ENV RELEASE=1
#ENV PICO_1V3 1
ENV PATH "/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
CMD ["make"]