title: How to install Solidity compiler in Docker container - solc
body: <p>To all experts,</p>
  
  <p>I have my Django web app running inside a Docker container, how can I have the Solidity compiler to run in my Docker container as well? Please advise.</p>
  
  <pre><code>RUN \
    apk --no-cache --update add build-base cmake boost-dev git                                                &amp;&amp; \
    sed -i -E -e 's/include &lt;sys\/poll.h&gt;/include &lt;poll.h&gt;/' /usr/include/boost/asio/detail/socket_types.hpp  &amp;&amp; \
    git clone --depth 1 --recursive -b release https://github.com/ethereum/solidity                           &amp;&amp; \
    cd /solidity &amp;&amp; cmake -DCMAKE_BUILD_TYPE=Release -DTESTS=0 -DSTATIC_LINKING=1                             &amp;&amp; \
    cd /solidity &amp;&amp; make solc &amp;&amp; install -s  solc/solc /usr/bin                                               &amp;&amp; \
    cd / &amp;&amp; rm -rf solidity                                                                                   &amp;&amp; \
    apk del sed build-base git make cmake gcc g++ musl-dev curl-dev boost-dev                                 &amp;&amp; \
    rm -rf /var/cache/apk/*
  </code></pre>