feat: add templates/games support with subpath routing and Docker build integration

This commit is contained in:
Plena Finance Dev
2026-07-09 13:09:22 +05:30
parent 65fdc108a8
commit b842bc678d
12 changed files with 342 additions and 0 deletions

View File

@@ -12,6 +12,13 @@ RUN bun install
COPY mobile/ .
RUN bun run build:web
FROM oven/bun:1.2.18 AS games-builder
WORKDIR /games
COPY games/package.json ./
RUN bun install
COPY games/ .
RUN bun run build
FROM oven/bun:1.2.18
WORKDIR /app
COPY backend/package.json backend/bun.lock backend/tsconfig.json ./
@@ -19,6 +26,7 @@ RUN bun install --frozen-lockfile --production
COPY backend/src ./src
COPY --from=website-builder /website/dist ./public
COPY --from=mobile-builder /mobile/dist ./public/mobile
COPY --from=games-builder /games/dist ./public/games
ENV NODE_ENV=production
ENV PORT=8080