Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
1011 B
Raw Blame
# BUILD CONTEXT = repo root. The proxy consumes
# @clerum/grok-provider-attempt-contract via file:.
FROM node:24.22.1-alpine@sha256:06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53 AS builder

WORKDIR /app
COPY packages/grok-provider-attempt-contract ./packages/grok-provider-attempt-contract
COPY grok-llm-proxy/package*.json ./grok-llm-proxy/
WORKDIR /app/grok-llm-proxy
RUN npm ci
COPY grok-llm-proxy/tsconfig.json grok-llm-proxy/tsconfig.build.json ./
COPY grok-llm-proxy/src ./src
RUN npm run build

FROM node:24.22.1-alpine@sha256:06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53

WORKDIR /app
COPY packages/grok-provider-attempt-contract ./packages/grok-provider-attempt-contract
COPY grok-llm-proxy/package*.json ./grok-llm-proxy/
WORKDIR /app/grok-llm-proxy
RUN npm ci --only=production
COPY --from=builder /app/grok-llm-proxy/dist ./dist

RUN addgroup -g 1001 -S nodejs && \
    adduser -S nodejs -u 1001
USER nodejs

EXPOSE 8080 8081 9090
CMD ["node", "dist/main.js"]