FROM node:22-bookworm
WORKDIR /app
# Enable pnpm automatically
RUN corepack enable && corepack prepare pnpm@latest --activate
# Copy repository source code
COPY . .
# Install dependencies and build
RUN pnpm install
RUN pnpm run build
EXPOSE 3080
# Force 0.0.0.0 host binding and disable browser popups
CMD ["node", "--import", "tsx/esm", "apps/cli/src/bin.ts", "web", "--host", "0.0.0.0", "--no-open"]