fix(ci): use internal registry for alpine and rust base images

- Change FROM rust:1.87-alpine to FROM registry.nxtgauge.com/rust:1.87-alpine
- Change FROM alpine:3.20 to FROM registry.nxtgauge.com/alpine:3.20
- Fixes Docker Hub rate limiting errors in Woodpecker builds

Images to mirror:
- docker pull rust:1.87-alpine
- docker tag rust:1.87-alpine registry.nxtgauge.com/rust:1.87-alpine
- docker push registry.nxtgauge.com/rust:1.87-alpine

- docker pull alpine:3.20
- docker tag alpine:3.20 registry.nxtgauge.com/alpine:3.20
- docker push registry.nxtgauge.com/alpine:3.20
This commit is contained in:
Tracewebstudio Dev 2026-04-16 19:30:39 +02:00
parent 42d5053259
commit 320e683a1b

View file

@ -1,4 +1,4 @@
FROM rust:1.87-alpine AS builder
FROM registry.nxtgauge.com/rust:1.87-alpine AS builder
RUN apk add --no-cache musl-dev pkgconfig openssl-dev
WORKDIR /app
COPY Cargo.toml Cargo.lock* ./
@ -7,7 +7,7 @@ COPY migrations ./migrations
COPY seeds ./seeds
RUN cargo build --release
FROM alpine:3.20
FROM registry.nxtgauge.com/alpine:3.20
RUN apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=builder /app/target/release/nxtgauge-ai-assistant /usr/local/bin/nxtgauge-ai-assistant