medusa-starter-default
medusa-starter-default copied to clipboard
Entry point error in Dockerfile
Hi @olivermrbl , I am a beginner and learning things in Docker. I made an image of this repo in my docker file. Two of the containers Postgres and Redis server are working but the medusa-server is not running there is an error coming up with an entry point in DockerFile that develop.sh file not found. I believe this is the right place to ask, if not please tell me where to ask or find the solution. Thanks!
I had the same issue on my Windows machine. This is how I fixed it:
- open
develop.sh
- change
#!/bin/bash
to#!//bin//bash
- re-run
docker compose up
@blackhexagon Hey I tried your solution but I am still getting the same error. Any suggestions?
Hey @blackhexagon and @sabakhilji, I got the fix. So basically all you have to do is change the line formatting in vscode from CRLF to LF and then run docker-compose. 😄
@gaganbiswas where do you find this setting ? I have been stuck on this issue for quite a while
Edit: changing entrypoint to: ENTRYPOINT ["/bin/sh", "./develop.sh"]
solved the issue for me
@Anan-Saadi It's basically at the right bottom of VS-code. When you will open the develop.sh file it will be CRLF (it was for me). I just changed that to LF and things started working.