speedup docker builds with a cache

This commit is contained in:
Santiago Bernhardt
2023-06-16 11:00:30 +12:00
parent ddd28a0607
commit 07c2cd1af4
4 changed files with 43 additions and 8 deletions

View File

@@ -2,9 +2,13 @@ version: "3"
services:
pialert:
privileged: true
build: .
build:
dockerfile: Dockerfile
context: .
cache_from:
- type=registry,ref=ghcr.io/jokob-sk/pi.alert:buildcache
container_name: pialert
network_mode: "host"
network_mode: host
restart: unless-stopped
volumes:
- ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config