Fix start.sh path and execution in Docker
This commit is contained in:
@@ -39,9 +39,9 @@ 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
|
||||
RUN echo '#!/bin/sh\nnpx prisma migrate deploy\nnpm start' > start.sh
|
||||
RUN chmod +x start.sh
|
||||
RUN printf "#!/bin/sh\nnpx prisma migrate deploy\nnpm start" > /app/start.sh
|
||||
RUN chmod +x /app/start.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["./start.sh"]
|
||||
CMD ["sh", "/app/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user