Dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. FROM ubuntu:18.04
  2. RUN apt-get update && apt-get install -y git wget libncurses-dev flex bison gperf \
  3. python python-pip python-setuptools python-serial python-click \
  4. python-cryptography python-future python-pyparsing \
  5. python-pyelftools cmake ninja-build ccache libusb-1.0
  6. RUN mkdir /workspace
  7. WORKDIR /workspace
  8. # Download and checkout known good esp-idf commit
  9. RUN git clone --recursive https://github.com/espressif/esp-idf.git esp-idf
  10. RUN cd esp-idf && git checkout 4dac7c7df885adaa86a5c79f2adeaf8d68667349
  11. RUN git clone https://github.com/sle118/squeezelite-esp32.git
  12. # Download GCC 5.2.0
  13. RUN wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
  14. RUN tar -xzf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
  15. RUN rm xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
  16. RUN rm -r /workspace/squeezelite-esp32
  17. RUN mkdir /workspace/squeezelite-esp32
  18. # Setup PATH to use esp-idf and gcc-5.2.0
  19. RUN touch /root/.bashrc && \
  20. echo export PATH="\$PATH:/workspace/xtensa-esp32-elf/bin" >> /root/.bashrc && \
  21. echo export IDF_PATH=/workspace/esp-idf >> /root/.bashrc
  22. # OPTIONAL: Install vim for text editing in Bash
  23. RUN apt-get update && apt-get install -y vim
  24. WORKDIR /workspace/squeezelite-esp32
  25. CMD ["bash"]