Fix start.sh path and execution in Docker

This commit is contained in:
2026-01-12 21:06:34 +01:00
parent f3f9c58436
commit f7829ed50c

View File

@@ -39,9 +39,9 @@ COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
COPY --from=builder /app/node_modules/@prisma ./node_modules/@prisma COPY --from=builder /app/node_modules/@prisma ./node_modules/@prisma
# Script to run migrations and start the app # Script to run migrations and start the app
RUN echo '#!/bin/sh\nnpx prisma migrate deploy\nnpm start' > start.sh RUN printf "#!/bin/sh\nnpx prisma migrate deploy\nnpm start" > /app/start.sh
RUN chmod +x start.sh RUN chmod +x /app/start.sh
EXPOSE 3000 EXPOSE 3000
CMD ["./start.sh"] CMD ["sh", "/app/start.sh"]