mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Try fix docker build
This commit is contained in:
		| @@ -1,21 +1,21 @@ | ||||
| # Dockerfile for aarch64 version of HassIO add-on | ||||
| FROM homeassistant/aarch64-base:latest | ||||
| FROM arm64v8/ubuntu:bionic | ||||
|  | ||||
| RUN apk add --no-cache \ | ||||
|         python2 \ | ||||
|         py2-pip \ | ||||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||||
|         python \ | ||||
|         python-pip \ | ||||
|         python-setuptools \ | ||||
|         python-pil \ | ||||
|         git \ | ||||
|         openssh \ | ||||
|         libc6-compat \ | ||||
|     && \ | ||||
|     && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*rm -rf /var/lib/apt/lists/* /tmp/* && \ | ||||
|     pip install --no-cache-dir --no-binary :all: platformio && \ | ||||
|     platformio settings set enable_telemetry No | ||||
|  | ||||
| COPY docker/platformio-esp8266.ini /pio/platformio.ini | ||||
| COPY docker/platformio.ini /pio/platformio.ini | ||||
| RUN platformio run -d /pio; rm -rf /pio | ||||
|  | ||||
| COPY . . | ||||
| RUN pip install --no-cache-dir --no-binary :all: -e . && \ | ||||
|     pip install --no-cache-dir --no-binary :all: pillow tzlocal | ||||
|     pip install --no-cache-dir --no-binary :all: tzlocal | ||||
|  | ||||
| CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"] | ||||
|   | ||||
| @@ -3,8 +3,10 @@ FROM homeassistant/armhf-base:latest | ||||
|  | ||||
| RUN apk add --no-cache \ | ||||
|         python2 \ | ||||
|         python2-dev \ | ||||
|         py2-pip \ | ||||
|         git \ | ||||
|         gcc \ | ||||
|         openssh \ | ||||
|         libc6-compat \ | ||||
|         jpeg-dev \ | ||||
| @@ -13,6 +15,8 @@ RUN apk add --no-cache \ | ||||
|         lcms2-dev \ | ||||
|         openjpeg-dev \ | ||||
|         tiff-dev \ | ||||
|         libc-dev \ | ||||
|         linux-headers \ | ||||
|     && \ | ||||
|     pip install --no-cache-dir --no-binary :all: platformio && \ | ||||
|     platformio settings set enable_telemetry No | ||||
| @@ -22,6 +26,6 @@ RUN platformio run -d /pio; rm -rf /pio | ||||
|  | ||||
| COPY . . | ||||
| RUN pip install --no-cache-dir --no-binary :all: -e . && \ | ||||
|     pip install --no-cache-dir pilow tzlocal | ||||
|     pip install --no-cache-dir pillow tzlocal | ||||
|  | ||||
| CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user