feat: XLive 直播平台初始版本
多用户网页直播平台:OBS/FFmpeg 鉴权 RTMP 推流到 SRS,HLS 低延迟播放; Fastify 5 + Prisma + PostgreSQL + Redis 后端,Vue 3 前端,Docker Compose 部署。
This commit is contained in:
1 parent
5ef949fe07
commit
463dbb1566
73 files changed
+9593
No files matched your search
@@ -0,0 +1,14 @@
|
||||
FROM node:22-alpine AS base
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
COPY apps/api/package.json apps/api/package.json
|
||||
COPY apps/web/package.json apps/web/package.json
|
||||
RUN npm ci
|
||||
COPY apps/web apps/web
|
||||
FROM base AS dev
|
||||
CMD ["npm", "run", "dev", "-w", "@xlive/web", "--", "--host", "0.0.0.0"]
|
||||
FROM base AS build
|
||||
RUN npm run build -w @xlive/web
|
||||
FROM nginx:1.27-alpine AS production
|
||||
COPY --from=build /app/apps/web/dist /usr/share/nginx/html
|
||||
COPY apps/web/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
Reference in new issue
Block a user