admin
Some checks failed
Deploy Docker Image / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-02-27 18:03:55 +08:00
parent c9ddf68e1c
commit 40063d82b8
9 changed files with 279 additions and 21 deletions

View File

@@ -10,11 +10,9 @@ RUN npm ci
COPY . .
RUN npm run build
# Use a simple Node static server instead of nginx
RUN npm install -g serve
EXPOSE 80
# Serve the built SPA on port 80, with history fallback so /admin 等前端路由都可直接访问
CMD ["serve", "-s", "dist", "-l", "80"]
# Serve SPA + proxy streaming API on port 80
ENV PORT=80
CMD ["node", "server/index.mjs"]