- Add AI plans, credits, model routing, LiteLLM client, and orchestrator services - Add AI management endpoints, auto-apply/auto-request handlers, and log endpoints - Add cron jobs for daily action reset and monthly credit reset - Add AI credit purchase flow in payments service - Add ai_credit_packages migration with seed data - Update Dockerfile build tooling across services
28 lines
713 B
Docker
28 lines
713 B
Docker
FROM registry.nxtgauge.com/rust:alpine AS builder
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN apk add --no-cache musl-dev pkgconfig openssl-dev openssl-libs-static && \
|
|
rustup target add x86_64-unknown-linux-musl
|
|
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY crates ./crates
|
|
COPY apps ./apps
|
|
|
|
ENV RUSTFLAGS='-C target-feature=+crt-static'
|
|
ENV OPENSSL_STATIC=1
|
|
ENV OPENSSL_DIR=/usr
|
|
RUN cargo build --release --bin job_seekers --target x86_64-unknown-linux-musl
|
|
|
|
FROM registry.nxtgauge.com/alpine:latest AS runtime
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
RUN adduser -D -u 1000 appuser
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/job_seekers ./job_seekers
|
|
|
|
USER appuser
|
|
|
|
CMD ["./job_seekers"]
|