Add cache busting to force pip to re-fetch dependencies

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
giles
2026-01-11 12:44:44 +00:00
parent 39870a499c
commit ff7ce1a61e
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 && rm -rf /
# Install dependencies # Install dependencies
COPY requirements.txt . COPY requirements.txt .
ARG CACHEBUST=1
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Copy application # Copy application

View File

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