title: Running Startup script in Docker
body: <p>I have build docker image from below:</p>
  <pre><code>FROM rocker/r-ubuntu:20.04
  
  LABEL maintainer=&quot;Utkarsh Saraf&quot;
  
  ARG DEBIAN_FRONTEND=noninteractive
  
  RUN apt-get update &amp;&amp; \
      apt-get upgrade -y &amp;&amp; \
      apt-get install -y  software-properties-common \
      apt-utils \
      libxml2-dev \
      openjdk-8-jdk \
      build-essential \
      libcurl4-gnutls-dev \
      libssl-dev \
      openssh-server &amp;&amp; \
      apt-get clean
  
  
  WORKDIR /app
  COPY . /app
  COPY start.sh /start.sh
  RUN chmod +x /start.sh
  ENTRYPOINT [&quot;sh&quot;,&quot;/app/startup.sh&quot;]
  </code></pre>
  <p>In startup.sh, following code contains:</p>
  <pre><code>java web-app.jar &amp;
  </code></pre>
  <p>How to execute shell file.</p>