-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (19 loc) · 815 Bytes
/
Dockerfile
File metadata and controls
20 lines (19 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.7-slim
# FROM ubuntu
RUN apt-get update && apt-get install -y curl git # python3 python3-pip python-is-python3
RUN curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sh
ADD config/arduino-cli.yaml /root/.arduino15/arduino-cli.yaml
RUN arduino-cli core install esp32:esp32
RUN pip install --no-cache-dir pyyaml
RUN pip install pyserial
RUN pip install gitpython
RUN pip install boto3
RUN arduino-cli core install esp32:esp32 --config-file .arduino-cli.yaml
RUN arduino-cli core update-index
COPY compile.py /usr/src/app/
#COPY init.sh /usr/src/sketch/
#RUN chmod +x /usr/src/sketch/init.sh
WORKDIR /usr/src
#ENTRYPOINT ["python", "-u", "/usr/src/app/compile.py"]
#CMD [ "sh", "/usr/src/app/init.sh" ]
CMD [ "python", "-u", "/usr/src/app/compile.py" ]