Force pip cache bust on deploy

- Add CACHEBUST build arg to Dockerfile
- Pass timestamp to --build-arg in deploy.sh
- Ensures artdag is re-fetched from GitHub on each deploy

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-08 00:59:20 +00:00
parent e4fd5eb010
commit ea60afb624
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends git ffmpeg && r
# Install dependencies
COPY requirements.txt .
ARG CACHEBUST=1
RUN pip install --no-cache-dir -r requirements.txt
# Copy application

View File

@@ -7,7 +7,7 @@ echo "=== Pulling latest code ==="
git pull
echo "=== Building Docker image ==="
docker build -t git.rose-ash.com/art-dag/l1-server:latest .
docker build --build-arg CACHEBUST=$(date +%s) -t git.rose-ash.com/art-dag/l1-server:latest .
echo "=== Redeploying celery stack ==="
docker stack deploy -c docker-compose.yml celery