title: Run kubectl inside dockerimage
body: <p>I have application with a DockerFile. This DockerFile needs to run a shell script that have curl commands and kubectl commands.</p>
  <p>I have designed the dockerFile as</p>
  <pre><code>FROM ubuntu:16.04
  
  WORKDIR /build
  
  RUN apt-get update &amp;&amp; apt-get install -y curl &amp;&amp; apt-get install -y jq
  COPY ./ ./
  RUN chmod +x script.sh
  ENTRYPOINT [&quot;./script.sh&quot;]
  </code></pre>
  <p>The <code>script.sh</code> file is what contains curl commands and kubectl command.</p>
  <p>If you see I have installed curl command inside the docker container using command <code>RUN apt-get update &amp;&amp; apt-get install -y curl </code></p>
  <p>What do I need to do in order to run kubectl commands ? Becase when I build and the run the above image, it throws an error saying <code>kubectl: command not found</code> .</p>
  <p>Can anyone help me with this ?</p>