This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user