File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,20 @@ RUN apk add --no-cache wget curl bash libc6-compat openssl
77WORKDIR /app
88
99# Copy manifests first and install production deps inside the image (avoid broken bun symlinks)
10- COPY package.json bun.lock ./
10+ COPY package.json ./
1111
1212# Install bun and deps
1313RUN curl -fsSL https://bun.sh/install | bash \
1414 && export PATH="/root/.bun/bin:$PATH" \
15- && ( bun install --production --frozen-lockfile -- ignore-scripts || bun install --production --ignore-scripts)
15+ && bun install --production --ignore-scripts
1616
1717# Now copy the pre-built app contents (dist/, prisma/, etc.)
1818COPY . .
1919
20+ # Generate Prisma client inside the image (ensures runtime client matches installed deps)
21+ RUN export PATH="/root/.bun/bin:$PATH" \
22+ && bunx prisma generate
23+
2024# Set environment variables
2125ENV NODE_ENV=production
2226ENV PORT=3333
You can’t perform that action at this time.
0 commit comments