<p>I'm new to Docker. I'm trying to create a dockerfile which basically sets kubectl (Kubernetes client), helm 3 and Python 3.7. I used:</p>
<pre><code>FROM python:3.7-alpine
COPY ./ /usr/src/app/
WORKDIR /usr/src/app
</code></pre>
<p>Now I'm trying to figure out how to add <code>kubectl</code> and <code>helm</code>. What would be the best way to install those two?</p>

vesii
<p>Working Dockerfile. This will install the latest and stable versions of <code>kubectl</code> and <code>helm-3</code></p>
<pre><code>FROM python:3.7-alpine
COPY ./ /usr/src/app/
WORKDIR /usr/src/app
RUN apk add curl openssl bash --no-cache
RUN curl -LO &quot;https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl&quot; \
    &amp;&amp; chmod +x ./kubectl \
    &amp;&amp; mv ./kubectl /usr/local/bin/kubectl \
    &amp;&amp; curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 \
    &amp;&amp; chmod +x get_helm.sh &amp;&amp; ./get_helm.sh
</code></pre>
