diff --git a/Dockerfile b/Dockerfile index 3c31553..d095043 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,7 @@ COPY --from=builder /app/.next ./.next COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/config.json ./config.json +COPY --from=builder /app/next.config.js ./next.config.js # 切换到非特权用户 USER nextjs diff --git a/next.config.js b/next.config.js index a68985a..f6ea510 100644 --- a/next.config.js +++ b/next.config.js @@ -14,10 +14,14 @@ const nextConfig = { { protocol: 'https', hostname: '**', + port: '', + pathname: '**', }, { protocol: 'http', hostname: '**', + port: '', + pathname: '**', }, ], },