refactor: Migrate documentation content, rebuild UI components, and update core architecture.

This commit is contained in:
gitfromwildan
2026-03-10 01:38:58 +07:00
parent aac81dff8a
commit ab755844a3
132 changed files with 3947 additions and 12862 deletions

View File

@@ -6,12 +6,16 @@ FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Install Bun
RUN npm install -g bun
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lock* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
if [ -f bun.lock ]; then bun install --frozen-lockfile; \
elif [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
@@ -27,7 +31,13 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1
RUN npm run build
# Install Bun for build stage if needed (depending on script)
RUN npm install -g bun
RUN \
if [ -f bun.lock ]; then bun run build; \
else npm run build; \
fi
# Production image, copy all the files and run next
FROM base AS runner
@@ -57,3 +67,4 @@ ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
CMD ["node", "server.js"]