system-config/containers/big-agi/Containerfile

9 lines
373 B
Docker

FROM registry.access.redhat.com/ubi9 AS builder
RUN curl -L https://github.com/enricoros/big-AGI/archive/refs/tags/v1.16.8.tar.gz | tar xz && mv big-AGI-* big-AGI
FROM registry.access.redhat.com/ubi9/nodejs-20-minimal
ENV NEXT_TELEMETRY_DISABLED 1
COPY --from=builder /big-AGI .
RUN mv middleware_BASIC_AUTH.ts middleware.ts
RUN npm ci
RUN npm run build
CMD npx next start