Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
615 B
Docker
27 lines
615 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache bash git python3 make g++ \
|
|
&& corepack enable \
|
|
&& corepack prepare pnpm@8.15.8 --activate
|
|
|
|
COPY pnpm-workspace.yaml package.json ./
|
|
COPY apps ./apps
|
|
COPY packages ./packages
|
|
COPY internal ./internal
|
|
COPY scripts ./scripts
|
|
|
|
RUN pnpm install --no-frozen-lockfile
|
|
RUN pnpm add -D less sass --workspace-root
|
|
RUN pnpm --filter @vben/web-antd... build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY apps/web-antd/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /app/apps/web-antd/dist /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|