1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Update build scripts

This commit is contained in:
Otto Winter
2020-07-15 01:37:30 +02:00
parent 17b55fc23d
commit 764eb960c6
11 changed files with 110 additions and 114 deletions

View File

@@ -1,4 +1,4 @@
ARG BUILD_FROM=esphome/esphome-base-amd64:2.1.1
ARG BUILD_FROM=esphome/esphome-base-amd64:2.3.1
FROM ${BUILD_FROM}
COPY . .

View File

@@ -1,4 +1,4 @@
FROM esphome/esphome-base-amd64:2.0.1
FROM esphome/esphome-base-amd64:2.3.1
COPY . .

View File

@@ -1,24 +1,7 @@
FROM esphome/esphome-base-amd64:2.1.2
FROM esphome/esphome-lint-base:2.3.1
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
clang-format-7 \
clang-tidy-7 \
patch \
software-properties-common \
# Update to latest git version because of github actions
# https://github.com/actions/checkout/issues/126
&& apt-add-repository ppa:git-core/ppa \
&& apt-get install -y --no-install-recommends \
git \
&& rm -rf \
/tmp/* \
/var/{cache,log}/* \
/var/lib/apt/lists/*
COPY requirements_test.txt /requirements_test.txt
RUN pip3 install --no-cache-dir -r /requirements_test.txt
COPY requirements.txt requirements_test.txt /
RUN pip3 install --no-cache-dir -r /requirements.txt -r /requirements_test.txt
VOLUME ["/esphome"]
WORKDIR /esphome