ci: fix kaniko builds and base images
This commit is contained in:
parent
221df53a1e
commit
bda6d495bc
2 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 ./
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue