-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
77 lines (65 loc) · 1.56 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM ubuntu:16.04
MAINTAINER T-vK
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository multiverse
RUN apt-get update && apt-get install -y \
autoconf \
automake \
bash \
bison \
bzip2 \
flex \
g++ \
gawk \
gcc \
git \
gperf \
libexpat-dev \
libtool \
libtool-bin \
make \
ncurses-dev \
nano \
python \
python-dev \
python-serial \
sed \
texinfo \
unrar \
unzip \
wget \
help2man
RUN useradd -m -s /bin/bash -g dialout esp && passwd -d esp
USER esp
WORKDIR /home/esp
RUN git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
RUN cd esp-open-sdk && make STANDALONE=n
RUN cd esp-open-sdk \
#&& make VENDOR_SDK=0.9.2 \
#&& make VENDOR_SDK=0.9.3 \
#&& make VENDOR_SDK=0.9.4 \
#&& make VENDOR_SDK=0.9.5 \
#&& make VENDOR_SDK=0.9.6b1 \
#&& make VENDOR_SDK=1.0.0 \
#&& make VENDOR_SDK=1.0.1b1 \
#&& make VENDOR_SDK=1.0.1b2 \
#&& make VENDOR_SDK=1.0.1 \
#&& make VENDOR_SDK=1.1.0 \
#&& make VENDOR_SDK=1.1.1 \
#&& make VENDOR_SDK=1.1.2 \
#&& make VENDOR_SDK=1.2.0 \
#&& make VENDOR_SDK=1.3.0 \
&& make VENDOR_SDK=1.4.0 \
&& make VENDOR_SDK=1.5.0 \
&& make VENDOR_SDK=1.5.1 \
&& make VENDOR_SDK=1.5.2 \
&& make VENDOR_SDK=1.5.3 \
&& make VENDOR_SDK=2.0.0 \
&& make VENDOR_SDK=1.5.4
ENV PATH /home/esp/esp-open-sdk/xtensa-lx106-elf/bin:/home/esp/esp-open-sdk/esptool:$PATH
ENV XTENSA_TOOLS_ROOT /home/esp/esp-open-sdk/xtensa-lx106-elf/bin
ENV SDK_BASE /home/esp/esp-open-sdk/sdk
COPY ./entrypoint.sh ./entrypoint.sh
USER root
RUN ["chmod", "+x", "./entrypoint.sh"]
USER esp
ENTRYPOINT ["./entrypoint.sh"]