fix: add cache-bust build arg to force Docker rebuild on deploy

Portainer stack updates were serving stale cached Docker layers.
Added CACHE_BUST ARG so each deploy can force a fresh build.
Set CACHE_BUST env var in Portainer to current timestamp to trigger.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-09 08:38:02 +00:00
co-authored by Claude Opus 4.6
parent 8e9285cd50
commit 834be596ba
2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
services:
botfights:
build: .
build:
context: .
args:
CACHE_BUST: ${CACHE_BUST:-0}
container_name: botfights
restart: unless-stopped
ports: