File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,19 @@ RUN bunx prisma generate
3232FROM base AS release
3333WORKDIR /usr/src/app
3434
35- # Copy node_modules from build stage (includes all dependencies + Prisma)
36- COPY --from=build /usr/src/app/node_modules ./node_modules
35+ # Copy root package.json and workspace node_modules
3736COPY --from=build /usr/src/app/package.json ./package.json
37+ COPY --from=build /usr/src/app/node_modules ./node_modules
38+
39+ # Copy the entire server application (includes prisma/generated/client)
40+ COPY --from=build /usr/src/app/apps/server ./apps/server
3841
39- # Copy the server application
42+ # Set working directory to server
4043WORKDIR /usr/src/app/apps/server
41- COPY --from=build /usr/src/app/apps/server .
4244
4345# Create startup script with explicit working directory
44- RUN echo '#!/bin/sh\n cd /usr/src/app/apps/server\n bunx prisma migrate deploy\n bun run start' > /usr/src/app/apps/server/ start.sh && \
45- chmod +x /usr/src/app/apps/server/ start.sh
46+ RUN echo '#!/bin/sh\n cd /usr/src/app/apps/server\n bunx prisma migrate deploy\n bun run start' > start.sh && \
47+ chmod +x start.sh
4648
4749USER bun
4850EXPOSE 9999/tcp
You can’t perform that action at this time.
0 commit comments