Skip to content

Commit 4cc5e43

Browse files
committed
fixup! Nextjs example, dockerfiles and k8s config
1 parent d0a5ac9 commit 4cc5e43

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

docker/Dockerfile.alpine

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ COPY --from=builder /app/public ./public
4141

4242
# Automatically leverage output traces to reduce image size
4343
# https://nextjs.org/docs/advanced-features/output-file-tracing
44-
# COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
44+
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
4545
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
4646

4747

docker/Dockerfile.debian

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ COPY --from=builder /app/public ./public
5252

5353
# Automatically leverage output traces to reduce image size
5454
# https://nextjs.org/docs/advanced-features/output-file-tracing
55-
# COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
55+
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
5656
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
5757

5858
USER nextjs

install

-7
This file was deleted.

sample-app/next.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
output: "standalone",
55
};
66

77
export default nextConfig;

0 commit comments

Comments
 (0)