Files
zopu-code/packages/agents/Dockerfile

31 lines
486 B
Docker

FROM oven/bun:1.3.14 AS build
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
g++ \
make \
nodejs \
python3 \
&& rm -rf /var/lib/apt/lists/*
ENV PATH=/usr/bin:$PATH
COPY . .
RUN bun install --frozen-lockfile
RUN bun run --filter @code/agents build
FROM node:24-bookworm-slim
ENV NODE_ENV=production
ENV PORT=3000
WORKDIR /app
COPY --from=build /app /app
EXPOSE 3000
CMD ["node", "packages/agents/dist/server.mjs"]