mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-26 22:24:42 +08:00
feat: implement all admin functions
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user