From bda6d495bc511917e50a5d5a82ac2f5251c6a3e0 Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Fri, 17 Apr 2026 03:04:01 +0200 Subject: [PATCH] ci: fix kaniko builds and base images --- .woodpecker.yml | 3 ++- Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 12b77e7..c6954d2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,7 +6,8 @@ steps: - name: build-and-push image: registry.nxtgauge.com/kaniko:2.1.1 settings: - registry: registry.nxtgauge.com + registry: + from_secret: REGISTRY_HOSTPORT username: from_secret: REGISTRY_USERNAME password: diff --git a/Dockerfile b/Dockerfile index 79d4cad..a912af5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Multi-stage build with memory optimization -FROM node:20-slim AS builder +FROM registry.nxtgauge.com/node:20-alpine AS builder WORKDIR /app # Skip browser downloads @@ -13,7 +13,7 @@ RUN echo "VITE_API_URL=http://localhost:9100" > .env && \ echo "VITE_RUST_API_URL=http://localhost:9100/api" >> .env # Install build dependencies -RUN apt-get update && apt-get install -y python3 make g++ git && rm -rf /var/lib/apt/lists/* +RUN apk add --no-cache python3 make g++ git # Copy package files COPY package*.json ./