medusa-starter-default icon indicating copy to clipboard operation
medusa-starter-default copied to clipboard

Entry point error in Dockerfile

Open sabakhilji opened this issue 2 years ago • 5 comments

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!

sabakhilji avatar Jul 31 '22 20:07 sabakhilji

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 avatar Oct 16 '22 19:10 blackhexagon

@blackhexagon Hey I tried your solution but I am still getting the same error. Any suggestions?

gaganbiswas avatar Nov 17 '22 15:11 gaganbiswas

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 avatar Nov 17 '22 15:11 gaganbiswas

@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 avatar Nov 17 '22 20:11 Anan-Saadi

@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.

gaganbiswas avatar Nov 18 '22 16:11 gaganbiswas