Skip to content

Commit 91f9ff0

Browse files
committed
fix(Dockerfile): copy node_modules and update start.sh permissions in API Docker configuration
1 parent e395d60 commit 91f9ff0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

apps/api/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ COPY --from=build /app/dist ./dist
4141
COPY --from=build /app/prisma ./prisma
4242
COPY --from=build /app/src/generated ./src/generated
4343

44+
# Copy node_modules from build stage to get Prisma CLI
45+
COPY --from=build /app/node_modules ./node_modules
46+
47+
COPY --from=build /app/start.sh ./start.sh
48+
RUN chmod +x start.sh
49+
4450
RUN chown -R nodejs:nodejs /app
4551
USER nodejs
4652

4753
EXPOSE 3000
4854

49-
COPY --from=build /app/start.sh ./start.sh
50-
RUN chmod +x start.sh
51-
5255
CMD ["./start.sh"]

0 commit comments

Comments
 (0)