Add BUILD_DATE arg for cache busting in Docker builds

This commit is contained in:
2026-01-06 02:14:44 +01:00
parent 34f3086899
commit c5cdce28e9
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
# Build stage # Build stage
FROM node:20-alpine AS builder FROM node:20-alpine AS builder
# Cache buster - wijzig BUILD_DATE in docker-compose om rebuild te forceren
ARG BUILD_DATE=unknown
RUN echo "Build date: $BUILD_DATE"
# Install build dependencies for better-sqlite3 # Install build dependencies for better-sqlite3
RUN apk add --no-cache python3 make g++ RUN apk add --no-cache python3 make g++

View File

@@ -6,7 +6,11 @@ version: '3.8'
services: services:
questionnaire: questionnaire:
build: http://10.0.10.205:3000/bert.hausmans/questionnaire.git#main build:
context: http://10.0.10.205:3000/bert.hausmans/questionnaire.git#main
args:
# Wijzig deze datum om een rebuild te forceren
BUILD_DATE: "2026-01-06"
container_name: questionnaire container_name: questionnaire
ports: ports:
- "4000:4000" - "4000:4000"