|
@@ -62,4 +62,5 @@ EXPOSE 3000
|
|
|
ENV PORT 3000
|
|
|
|
|
|
# 使用 bash 启动应用
|
|
|
-CMD ["/bin/bash", "-c", "node_modules/.bin/next start"]
|
|
|
+# CMD ["/bin/bash", "-c", "node_modules/.bin/next start"]
|
|
|
+CMD ["/bin/bash", "-c", "chown -R nextjs:nodejs /app/public/uploads && su nextjs -c 'node_modules/.bin/next start'"]
|