Force drift rebuild: add CACHE_BUST build arg to Dockerfile + docker-compose
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
FROM node:22-slim AS builder
|
FROM node:22-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
ARG CACHE_BUST=1
|
||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
RUN npm ci --include=dev
|
RUN npm ci --include=dev
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./01-llm-cost-router
|
context: ./01-llm-cost-router
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
CACHE_BUST: "2026-03-01-2300"
|
||||||
command: ["dd0c-api"]
|
command: ["dd0c-api"]
|
||||||
ports:
|
ports:
|
||||||
- "3001:3000"
|
- "3001:3000"
|
||||||
@@ -108,6 +110,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./02-iac-drift-detection/saas
|
context: ./02-iac-drift-detection/saas
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
CACHE_BUST: "2026-03-01-2300"
|
||||||
ports:
|
ports:
|
||||||
- "3002:3000"
|
- "3002:3000"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user