Add --no-cache to all Docker builds

This commit is contained in:
XPS\Micro 2026-01-30 21:56:15 +01:00
parent c80d3c0d92
commit 68e1320d20

View File

@ -384,7 +384,7 @@ if [ -d "${INSTALL_DIR}/user-template-next" ]; then
echo -e " ${BLUE}Dies kann 2-5 Minuten dauern (npm install + build)...${NC}" echo -e " ${BLUE}Dies kann 2-5 Minuten dauern (npm install + build)...${NC}"
echo "" echo ""
if docker build --progress=plain -t user-template-next:latest "${INSTALL_DIR}/user-template-next/" 2>&1 | \ if docker build --no-cache --progress=plain -t user-template-next:latest "${INSTALL_DIR}/user-template-next/" 2>&1 | \
grep -E "^(Step |#[0-9]+ |Successfully|ERROR|error:)" | \ grep -E "^(Step |#[0-9]+ |Successfully|ERROR|error:)" | \
sed 's/^/ /'; then sed 's/^/ /'; then
echo "" echo ""
@ -398,14 +398,14 @@ fi
# Spawner Backend Image bauen # Spawner Backend Image bauen
echo " [3/4] Baue Spawner API (Flask Backend)..." echo " [3/4] Baue Spawner API (Flask Backend)..."
if docker build --progress=plain -t spawner:latest "${INSTALL_DIR}/" 2>&1 | \ if docker build --no-cache --progress=plain -t spawner:latest "${INSTALL_DIR}/" 2>&1 | \
grep -E "^(Step |#[0-9]+ |Successfully|ERROR|error:)" | \ grep -E "^(Step |#[0-9]+ |Successfully|ERROR|error:)" | \
sed 's/^/ /'; then sed 's/^/ /'; then
echo -e " spawner-api: ${GREEN}OK${NC}" echo -e " spawner-api: ${GREEN}OK${NC}"
else else
echo -e " spawner-api: ${RED}FEHLER${NC}" echo -e " spawner-api: ${RED}FEHLER${NC}"
echo " Versuche erneut mit voller Ausgabe..." echo " Versuche erneut mit voller Ausgabe..."
docker build -t spawner:latest "${INSTALL_DIR}/" docker build --no-cache -t spawner:latest "${INSTALL_DIR}/"
exit 1 exit 1
fi fi
@ -415,7 +415,7 @@ if [ -d "${INSTALL_DIR}/frontend" ]; then
echo -e " ${BLUE}Dies kann 2-5 Minuten dauern (npm install + build)...${NC}" echo -e " ${BLUE}Dies kann 2-5 Minuten dauern (npm install + build)...${NC}"
echo "" echo ""
if docker build --progress=plain -t spawner-frontend:latest "${INSTALL_DIR}/frontend/" 2>&1 | \ if docker build --no-cache --progress=plain -t spawner-frontend:latest "${INSTALL_DIR}/frontend/" 2>&1 | \
grep -E "^(Step |#[0-9]+ |Successfully|ERROR|error:)" | \ grep -E "^(Step |#[0-9]+ |Successfully|ERROR|error:)" | \
sed 's/^/ /'; then sed 's/^/ /'; then
echo "" echo ""
@ -424,7 +424,7 @@ if [ -d "${INSTALL_DIR}/frontend" ]; then
echo "" echo ""
echo -e " spawner-frontend: ${RED}FEHLER${NC}" echo -e " spawner-frontend: ${RED}FEHLER${NC}"
echo " Versuche erneut mit voller Ausgabe..." echo " Versuche erneut mit voller Ausgabe..."
docker build -t spawner-frontend:latest "${INSTALL_DIR}/frontend/" docker build --no-cache -t spawner-frontend:latest "${INSTALL_DIR}/frontend/"
exit 1 exit 1
fi fi
fi fi