File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,21 +2,24 @@ FROM oven/bun:alpine AS base
22WORKDIR /app
33
44FROM base AS deps
5+ RUN apk add --no-cache python3 make g++ git
6+
57COPY bun.lock package.json ./
8+ COPY source.config.ts tsconfig.json ./
9+
10+ RUN mkdir -p content/docs
11+
612RUN bun install --frozen-lockfile
713
814FROM base AS builder
915WORKDIR /app
10-
1116COPY --from=deps /app/node_modules ./node_modules
12-
1317COPY . .
1418
1519ENV NEXT_TELEMETRY_DISABLED=1
1620RUN bun run build
1721
1822FROM oven/bun:alpine AS runner
19-
2023RUN addgroup --system --gid 1001 nodejs && \
2124 adduser --system --uid 1001 nextjs
2225
@@ -28,8 +31,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
2831COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json
2932
3033USER nextjs
31-
3234EXPOSE 8080
35+
3336ENV NODE_ENV=production
3437ENV PORT=8080
3538ENV HOSTNAME="0.0.0.0"
You can’t perform that action at this time.
0 commit comments