title: how to make non root user as sudo user in docker alpine image?
body: <p>I am trying build cassandra docker image using alpine based os. on the container run process i am getting permission related issue, as i am running as cassandra user. i am unable to run sudo and switch my user cassandra as sudo user. below is my sample docker file, shows only sudo user related logic--</p>
  
  <pre><code>FROM alpine:latest
  RUN apk --no-cache update \
      &amp;&amp; apk --no-cache add sudo
  copy run.sh /usr/local/
  RUN addgroup -S cassandra &amp;&amp; adduser -S cassandra -G cassandra
  RUN chown -R cassandra:cassandra /home/cassandra/
  RUN echo 'cassandra  ALL=(ALL) /bin/su' &gt;&gt;  /etc/sudoers
  USER cassandra
  ENTRYPOINT [ "sh","/usr/local/run.sh"]
  </code></pre>
  
  <p>after login to container i am unable to perform any sudo related task.</p>