chore(publish): replace source tree with static export at repo root

Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.

Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
This commit is contained in:
Bkk1234 committed 2026-11-22 22:24:36 +07:00
1 parent 05487728a7
commit e6c4ebff48
394 files changed
+3977 -37891

No files matched your search

-41
View File
@@ -1,41 +0,0 @@
# syntax=docker/dockerfile:1
# AlterFlixHub — React Router 8 / Nitro (node-server preset)
# runtime อ่านค่าพอร์ตจาก env PORT (Nitro อ่าน process.env.PORT เอง)
ARG NODE_VERSION=22
# ---------- 1. deps: ติดตั้ง dependency ทั้งหมด (มี node-pty ต้องใช้ build tools) ----------
FROM node:${NODE_VERSION}-bookworm-slim AS deps
ENV PNPM_HOME=/pnpm \
PATH=/pnpm:$PATH \
CI=1
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 make g++ ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN corepack enable && corepack prepare [email protected] --activate
WORKDIR /app
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --frozen-lockfile
# ---------- 2. build: agent-native build → .output/ ----------
FROM deps AS build
WORKDIR /app
COPY . .
RUN pnpm build
# ---------- 3. runtime ----------
FROM node:${NODE_VERSION}-bookworm-slim AS runtime
ENV NODE_ENV=production \
HOST=0.0.0.0 \
PORT=8080
WORKDIR /app
# .output มี server + public + nitro.json (dependency ถูก bundle ไว้ใน .output/server)
COPY --from=build /app/.output ./.output
# data/ (content.json, uploads, pglite, analytics) ถูก mount เป็น volume ตอนรัน
RUN mkdir -p /app/data && chown -R node:node /app/data /app/.output
USER node
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD node -e "fetch('http://127.0.0.1:'+(process.env.PORT||8080)+'/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
CMD ["node", ".output/server/index.mjs"]