Skip to content

Commit 9ff902b

Browse files
authored
Mariano/api fix 6 (#1660)
* chore(api): generate Prisma client during Docker image build * chore(api): update Dockerfile to set BUN_INSTALL environment variable
1 parent 298662c commit 9ff902b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/api/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ RUN curl -fsSL https://bun.sh/install | bash \
1818
COPY . .
1919

2020
# Generate Prisma client inside the image (ensures runtime client matches installed deps)
21-
RUN export PATH="/root/.bun/bin:$PATH" \
21+
RUN export BUN_INSTALL="/root/.bun" \
22+
&& export PATH="$BUN_INSTALL/bin:$PATH" \
2223
&& bunx prisma generate
2324

2425
# Set environment variables

0 commit comments

Comments
 (0)