2020-07-14 14:34:44 +02:00
|
|
|
FROM esphome/esphome-base-amd64:2.1.2
|
2018-06-13 11:13:53 +02:00
|
|
|
|
2019-05-28 10:23:15 +02:00
|
|
|
RUN \
|
|
|
|
apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
clang-format-7 \
|
|
|
|
clang-tidy-7 \
|
|
|
|
patch \
|
2020-07-11 22:22:03 +02:00
|
|
|
software-properties-common \
|
2020-07-14 14:34:44 +02:00
|
|
|
# Update to latest git version because of github actions
|
|
|
|
# https://github.com/actions/checkout/issues/126
|
2020-07-11 22:22:03 +02:00
|
|
|
&& apt-add-repository ppa:git-core/ppa \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
git \
|
2019-05-28 10:23:15 +02:00
|
|
|
&& rm -rf \
|
|
|
|
/tmp/* \
|
|
|
|
/var/{cache,log}/* \
|
|
|
|
/var/lib/apt/lists/*
|
2018-08-25 22:27:30 +02:00
|
|
|
|
2019-05-28 10:23:15 +02:00
|
|
|
COPY requirements_test.txt /requirements_test.txt
|
2020-07-14 14:34:44 +02:00
|
|
|
RUN pip3 install --no-cache-dir -r /requirements_test.txt
|
2019-05-28 10:23:15 +02:00
|
|
|
|
|
|
|
VOLUME ["/esphome"]
|
|
|
|
WORKDIR /esphome
|