From bf76975000ccf7c82ef134b7f114e24ea79a2fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E6=97=AD?= <> Date: Wed, 24 Jun 2026 17:29:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20start.sh=20=E5=9C=A8=20chown=20=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=20COPY=EF=BC=88=E7=A1=AE=E4=BF=9D=20nextjs=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=AF=E8=AF=BB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b01da9..2812435 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static COPY --from=deps /app/node_modules ./node_modules COPY --from=builder /app/prisma ./prisma +COPY start.sh ./start.sh # 数据库持久化目录 RUN mkdir -p /app/prisma && chown -R nextjs:nodejs /app @@ -46,6 +47,4 @@ EXPOSE 3000 ENV PORT=3000 ENV HOSTNAME="0.0.0.0" -COPY start.sh ./start.sh - CMD ["sh", "./start.sh"]