Main #7

Merged
dsutanto merged 7 commits from dsutanto/Deep-Package-Inspection:main into Proxy_Server_API_Netify 2026-07-17 13:59:59 +07:00
Showing only changes of commit 2a08f50900 - Show all commits
+32
View File
@@ -0,0 +1,32 @@
FROM oven/bun:1-alpine AS base
# Install dependencies only when needed
FROM base AS deps
WORKDIR /app
COPY package.json package-lock.json* ./
RUN bun install --frozen-lockfile --production
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN bun run build
# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
CMD ["bun", "run", "server.js"]