title: How to fix error in docker container with finding yarn?
body: <p>I am trying to set up the 0x Launch Kit Frontend (<a href="https://github.com/0xProject/0x-launch-kit-frontend" rel="nofollow noreferrer">https://github.com/0xProject/0x-launch-kit-frontend</a>). I have built it into a docker container with the Dockerfile here: <a href="https://github.com/0xProject/0x-launch-kit-frontend/blob/development/Dockerfile" rel="nofollow noreferrer">https://github.com/0xProject/0x-launch-kit-frontend/blob/development/Dockerfile</a>. When trying to do the command <code>docker run image:name yarn build</code> which should run the container from the local Docker image, I get the error <code>docker-entrypoint.sh: exec: line 32: yarn: not found </code>. Why is this and how can I fix it? It seems that yarn is installed in the Dockerfile (linked above) in this part:</p>
  <pre><code>RUN apk update &amp;&amp; \
  apk upgrade &amp;&amp; \
  apk add --no-cache --virtual build-dependencies bash git openssh python make g++ &amp;&amp; \
  yarn --no-cache || \
  apk del build-dependencies &amp;&amp; \
  yarn cache clean
  </code></pre>
  <p>Also, here is the code for the docker-entrypoint.sh file:</p>
  <pre><code>    #!/usr/bin/env sh
      # vim:sw=4:ts=4:et
      set -e
      if [ &quot;$1&quot; = &quot;nginx&quot; -o &quot;$1&quot; = &quot;nginx-debug&quot; ]; then
           if /usr/bin/find &quot;/docker-entrypoint.d/&quot; -mindepth 1 -maxdepth 1 -type f -print - 
             quit 2&gt;/dev/null | read v; then
            echo &quot;$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration&quot;
            echo &quot;$0: Looking for shell scripts in /docker-entrypoint.d/&quot;
            find &quot;/docker-entrypoint.d/&quot; -follow -type f -print | sort -n | while read -r f; do
                case &quot;$f&quot; in
                     *.sh)
                     if [ -x &quot;$f&quot; ]; then
                         echo &quot;$0: Launching $f&quot;;
                         &quot;$f&quot;
                     else
                         # warn on shell scripts without exec bit
                         echo &quot;$0: Ignoring $f, not executable&quot;;
                     fi
                     ;;
                 *) echo &quot;$0: Ignoring $f&quot;;;
              esac
           done
      echo &quot;$0: Configuration complete; ready for start up&quot;
      else
          echo &quot;$0: No files found in /docker-entrypoint.d/, skipping configuration&quot;
      fi
      fi
      exec &quot;$@&quot;
  </code></pre>