nxtgauge-ai-assistant/Dockerfile
Tracewebstudio Dev 320e683a1b 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
2026-04-16 19:30:39 +02:00

19 lines
617 B
Docker

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* ./
COPY src ./src
COPY migrations ./migrations
COPY seeds ./seeds
RUN cargo build --release
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
COPY --from=builder /app/migrations ./migrations
COPY --from=builder /app/seeds ./seeds
ENV APP_HOST=0.0.0.0
ENV APP_PORT=8080
EXPOSE 8080
CMD ["/usr/local/bin/nxtgauge-ai-assistant"]