fix: docker push

This commit is contained in:
JOYCEQL
2026-02-11 12:20:02 +08:00
parent ea032e2989
commit 993dcb919c
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -16,13 +16,13 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_STANDALONE=1
RUN pnpm run build
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
@@ -39,7 +39,7 @@ USER nextjs
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]
+1 -1
View File
@@ -13,7 +13,7 @@ const config = {
typescript: {
ignoreBuildErrors: true,
},
// output: "export",
...(process.env.NEXT_STANDALONE === "1" && { output: "standalone" }),
};
export default withNextIntl(config);