From 790d6535e569bf76a9a017b762161f3744422eed Mon Sep 17 00:00:00 2001 From: bipproduction Date: Mon, 2 Mar 2026 13:15:54 +0800 Subject: [PATCH] fix: perbaiki Dockerfile - lockfile, bunfig.toml, dan path build output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ganti bun.lock → bun.lockb (nama file yang benar) - Hapus bunfig.toml dari COPY (file tidak ada) - Ganti /app/dist → /app/.next (output Next.js build) Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc2b93db..b374aacf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ WORKDIR /app # ---- deps ---- FROM base AS deps -COPY package.json bun.lock ./ +COPY package.json bun.lockb ./ RUN bun install --frozen-lockfile # ---- builder ---- @@ -22,9 +22,7 @@ RUN bunx prisma generate COPY src ./src COPY types ./types -COPY tsconfig.json bunfig.toml ./ - - +COPY tsconfig.json ./ # BUN_PUBLIC_* vars are baked into the browser bundle at build time ARG BUN_PUBLIC_BASE_URL @@ -34,15 +32,15 @@ RUN bun run build # ---- runner ---- FROM base AS runner -COPY package.json bun.lock ./ +COPY package.json bun.lockb ./ RUN bun install --production COPY --from=builder /app/generated ./generated -COPY --from=builder /app/dist ./dist +COPY --from=builder /app/.next ./.next COPY src ./src COPY prisma ./prisma COPY types ./types -COPY tsconfig.json bunfig.toml ./ +COPY tsconfig.json ./ ENV NODE_ENV=production EXPOSE 3000