feat: implement all admin functions

This commit is contained in:
shinya
2025-07-05 18:49:35 +08:00
parent 774a5dd697
commit 5fcdcbb390
13 changed files with 1337 additions and 310 deletions

View File

@@ -47,6 +47,8 @@ ENV DOCKER_ENV=true
# 从构建器中复制 standalone 输出
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
# 从构建器中复制 start.js
COPY --from=builder --chown=nextjs:nodejs /app/start.js ./start.js
# 从构建器中复制 public 和 .next/static 目录
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
@@ -57,5 +59,5 @@ USER nextjs
EXPOSE 3000
# 使用 node 直接运行 server.js
CMD ["node", "server.js"]
# 使用自定义启动脚本,先预加载配置再启动服务器
CMD ["node", "start.js"]