title: adding startup script to dockerfile
body: <p>I have built my docker image using openjdk.</p>
  
  <pre><code># config Dockerfile
  FROM openjdk:8
  COPY . /usr/src/myapp
  WORKDIR /usr/src/myapp
  
  # build image
  docker build -t shantanuo/dbt .
  </code></pre>
  
  <p>It is working as expected using this command...</p>
  
  <pre><code>docker run -p 8081:8080  -it shantanuo/dbt
  </code></pre>
  
  <p>Once I log-in, I have to run this command...</p>
  
  <pre><code>sh bin/startup.sh
  </code></pre>
  
  <hr>
  
  <p>My Question: Is it possible to add the startup command to dockerfile? I tried adding this line in my dockerfile.</p>
  
  <pre><code>CMD ["sh", "bin/startup.sh"]
  </code></pre>
  
  <p>But after building the image, I can not use -d parameter to start the container.</p>