diff --git a/Dockerfile b/Dockerfile index 1a4ebef..7c52c94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/deploy.sh b/deploy.sh index abf68cd..bae1673 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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