-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
49 lines (28 loc) · 981 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Use an official Python runtime as a parent image
FROM ubuntu
MAINTAINER ESP32-Toolchain
#USER root
# Update aptitude with new repo
RUN apt-get update
# Install software
RUN apt-get install -y git
RUN apt-get install git wget make libncurses-dev flex bison gperf python python-serial -y
#RUN useradd -d /esp32/ -m -s /bin/bash esp32
RUN mkdir -p /home/esp
# Set the working directory to ~/esp/esp-idf
WORKDIR /home/esp
RUN wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
RUN tar -xzf xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
#clone GIT
RUN git clone --recursive https://github.com/espressif/esp-idf.git
#go to example directory
#WORKDIR home/esp/hello_world
#RUN make -j5
# Copy the current directory contents into the container at /app
#ADD . /home/app
WORKDIR /home/app
ENV PATH $PATH:"/home/esp/xtensa-esp32-elf/bin"
ENV IDF_PATH "/home/esp/esp-idf"
RUN echo $PATH
RUN echo $IDF_PATH
CMD /bin/bash