0

I want to create a docker file in which my API file which is named as start.sh should be running in the background when I run it in the container.Is there any way to do so?

Rituraj kumar
  • 349
  • 1
  • 4
  • 15

1 Answers1

2

Yes.

From the docs, there is 2 ways to use CMD: as a shell form, or an exec form.

Unlike the shell form, the exec form does not invoke a command shell.

Mornor
  • 3,471
  • 8
  • 31
  • 69