提交 24f015fe 作者: ZhangLingKun

测试:测试推送部署

上级 45369a8f
...@@ -16,10 +16,10 @@ RUN \ ...@@ -16,10 +16,10 @@ RUN \
fi fi
# Rebuild the source code only when needed # Rebuild the source code only when needed
FROM base AS builder #FROM base AS builder
WORKDIR /app #WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules #COPY --from=deps /app/node_modules ./node_modules
COPY . . #COPY . .
# Next.js collects completely anonymous telemetry data about general usage. # Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry # Learn more here: https://nextjs.org/telemetry
...@@ -42,12 +42,12 @@ ENV NODE_ENV production ...@@ -42,12 +42,12 @@ ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public #COPY --from=builder /app/public ./public
# Automatically leverage output traces to reduce image size # Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing # https://nextjs.org/docs/advanced-features/output-file-tracing
# COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ # COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static #COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs USER nextjs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论