<p>Base docker file</p>
<pre><code>FROM docker.repo.abs.com/alpine
ENV MULE_HOME /opt/mule
ENV MULE_VERSION 4.4.0

# Setup a non-root user
 

# application port


COPY mule-enterprise-standalone-${MULE_VERSION} support-collector support-watcher ${MULE_HOME}/
COPY arm.sh ${MULE_HOME}/bin/
COPY jq /usr/bin/

RUN apk update &amp;&amp; \
    apk add openjdk8  &amp;&amp; \
    wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub &amp;&amp; \
    wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.32-r0/glibc-2.32-r0.apk &amp;&amp; \
    apk  add --force-overwrite glibc-2.32-r0.apk &amp;&amp; \
    apk add --update curl &amp;&amp; \
    apk add bash &amp;&amp; \
    apk add sudo &amp;&amp; \
    rm *.apk &amp;&amp; \
    apk upgrade &amp;&amp; \
    rm -rf /var/cache/apk/** &amp;&amp; \
    rm &quot;/etc/apk/keys/sgerrand.rsa.pub&quot; &amp;&amp; \
    chmod +x /usr/bin/jq &amp;&amp; \
    chown -R muser:muser /opt &amp;&amp; \
    chmod -R 777 /opt &amp;&amp; \
    echo '%wheel ALL=(ALL) NOPASSWD:ALL' &gt; /etc/sudoers.d/wheel &amp;&amp; \
    adduser muser wheel &amp;&amp; \
    sudo -lU muser

WORKDIR /opt/mule/bin
USER muser
RUN sudo whoami
ENTRYPOINT [ &quot;./arm.sh&quot; ]
</code></pre>
<p>Getting this error while trying to deploy below docker file image on Kubernetes.
References <a href="https://github.com/giovtorres/slurm-docker-cluster/issues/19" rel="nofollow noreferrer">https://github.com/giovtorres/slurm-docker-cluster/issues/19</a> and tried converting all files from CRLF to LF, but not working.</p>

Rama
<p>Add this before ENTRYPOINT:</p>
<p><code>RUN chmod +x arm.sh</code></p>
<p>Also make sure that arm.sh has appropriate line endings (linux lf instead of windows crlf) on the machine you issue <code>docker build</code> command</p>
