From c2cf49b4f2ffcf407a2f6917b2111a151bbc3a29 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Dec 2025 07:33:53 +0000 Subject: [PATCH 1/2] Initial plan From 84984fbe6b3d783701101f99264c3ed8c4de0d57 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Dec 2025 07:39:08 +0000 Subject: [PATCH 2/2] Fix Dockerfile to use bun and fix COPY syntax Co-authored-by: abhalala <121454781+abhalala@users.noreply.github.com> --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc6c0cb..33ab413 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,8 @@ RUN apt-get update && apt-get install -y \ FROM base AS dependencies COPY package.json yarn.lock ./ -# Use yarn for better native module support -RUN yarn install --frozen-lockfile +# Use bun install for dependency installation +RUN bun install --frozen-lockfile # Build stage FROM base AS build @@ -31,10 +31,10 @@ COPY --from=dependencies /app/node_modules ./node_modules COPY . . # Generate Prisma client -RUN yarn prisma generate +RUN bun run prisma generate # Compile TypeScript -RUN yarn tsc +RUN bun run tsc # Production stage FROM base AS deploy @@ -51,7 +51,7 @@ COPY --from=build /app/prisma ./prisma COPY --from=dependencies /app/node_modules ./node_modules # Generate Prisma client in production environment -RUN yarn prisma generate +RUN bun run prisma generate # Create data directory for bundle numbers RUN mkdir -p /app/data && touch /app/data/currentBundleNo @@ -60,7 +60,7 @@ RUN mkdir -p /app/data && touch /app/data/currentBundleNo RUN mkdir -p /app/cache # Copy logo if exists (for label generation) -COPY logo.png ./logo.png 2>/dev/null || true +COPY logo.png* ./ EXPOSE 3000