Refactor layout and home page for improved localization and session handling
- Updated RootLayout to include locale support and integrated ThemeProvider and LocaleProvider for better internationalization. - Replaced static home page content with a redirect based on user session status, enhancing user experience by directing to the appropriate dashboard or login page. - Switched font from Geist to Inter for improved typography consistency.
This commit is contained in:
30
apps/webui/Dockerfile
Normal file
30
apps/webui/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM node:22-alpine AS base
|
||||
WORKDIR /app
|
||||
RUN corepack enable
|
||||
RUN apk add --no-cache openssl
|
||||
|
||||
FROM base AS deps
|
||||
COPY package.json pnpm-workspace.yaml turbo.json tsconfig.base.json ./
|
||||
COPY apps/webui/package.json apps/webui/package.json
|
||||
COPY apps/bot/package.json apps/bot/package.json
|
||||
COPY packages/shared/package.json packages/shared/package.json
|
||||
RUN pnpm install --frozen-lockfile=false
|
||||
|
||||
FROM deps AS build
|
||||
COPY apps ./apps
|
||||
COPY packages ./packages
|
||||
COPY eslint.config.js .eslintrc.cjs .prettierrc ./
|
||||
RUN pnpm install --frozen-lockfile=false
|
||||
RUN pnpm --filter @nexumi/shared build
|
||||
RUN pnpm --filter @nexumi/webui prisma:generate
|
||||
RUN pnpm --filter @nexumi/webui build
|
||||
|
||||
FROM base AS runner
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=build /app/apps/webui/.next/standalone ./
|
||||
COPY --from=build /app/apps/webui/.next/static ./apps/webui/.next/static
|
||||
COPY --from=build /app/apps/webui/public ./apps/webui/public
|
||||
EXPOSE 3000
|
||||
HEALTHCHECK --interval=15s --timeout=5s --start-period=30s --retries=5 \
|
||||
CMD node -e "fetch('http://127.0.0.1:3000/api/health').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
||||
CMD ["node", "apps/webui/server.js"]
|
||||
Reference in New Issue
Block a user