Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry point error in Dockerfile #23

Open
sabakhilji opened this issue Jul 31, 2022 · 5 comments
Open

Entry point error in Dockerfile #23

sabakhilji opened this issue Jul 31, 2022 · 5 comments

Comments

@sabakhilji
Copy link

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!

@blackhexagon
Copy link

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

@gaganbiswas
Copy link

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

@gaganbiswas
Copy link

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

@Anan-Saadi
Copy link

Anan-Saadi commented Nov 17, 2022

@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

@gaganbiswas
Copy link

gaganbiswas commented Nov 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants