From fece983ac537c04ce0a9977f154f8836f0c176c3 Mon Sep 17 00:00:00 2001 From: bipproduction Date: Tue, 10 Mar 2026 11:12:33 +0800 Subject: [PATCH] Fix Dockerfile: remove non-existent gen:api script and fix build output paths - Remove bun run gen:api which does not exist in package.json - Change dist to .next for correct Next.js build output - Replace non-existent generated/ with public/ for static assets Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f41ba9f..e946e8e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,9 +26,6 @@ RUN cp .env.example .env # Generate Prisma client RUN bun x prisma generate -# Generate API types -RUN bun run gen:api - # Build the application frontend RUN bun run build @@ -49,8 +46,8 @@ WORKDIR /app # Copy necessary files from build stage COPY --from=build /app/package.json ./ COPY --from=build /app/tsconfig.json ./ -COPY --from=build /app/dist ./dist -COPY --from=build /app/generated ./generated +COPY --from=build /app/.next ./.next +COPY --from=build /app/public ./public COPY --from=build /app/src ./src COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/prisma ./prisma