mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix Dockerfile.hassio and improve caching
Previous one was broken, see also https://github.com/esphome/esphome/runs/874896962
This commit is contained in:
		| @@ -1,11 +1,15 @@ | |||||||
| ARG BUILD_FROM | ARG BUILD_FROM | ||||||
| FROM ${BUILD_FROM} | FROM ${BUILD_FROM} | ||||||
|  |  | ||||||
|  | # First install requirements to leverage caching when requirements don't change | ||||||
|  | COPY requirements.txt / | ||||||
|  | RUN pip3 install --no-cache-dir -r /requirements.txt | ||||||
|  |  | ||||||
| # Copy root filesystem | # Copy root filesystem | ||||||
| COPY docker/rootfs/ / | COPY docker/rootfs/ / | ||||||
| COPY setup.py setup.cfg MANIFEST.in /opt/esphome/ |  | ||||||
| COPY esphome /opt/esphome/esphome |  | ||||||
|  |  | ||||||
|  | # Then copy esphome and install | ||||||
|  | COPY . /opt/esphome/ | ||||||
| RUN pip3 install --no-cache-dir -e /opt/esphome | RUN pip3 install --no-cache-dir -e /opt/esphome | ||||||
|  |  | ||||||
| # Build arguments | # Build arguments | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user