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 1d98c90258 - Show all commits
+4 -5
View File
@@ -1,19 +1,18 @@
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
COPY package.json .
RUN bun install
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:3001
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
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