title: How to convert an Ubuntu package/repository to Alpine in a Dockerfile?
body: <p>Currently I have this <code>Dockerfile</code></p>
  <pre><code>FROM ubuntu:18.04
  
  # https://github.com/tesseract-shadow/tesseract-ocr-re
  RUN apt-get update &amp;&amp; apt-get install -y software-properties-common &amp;&amp; add-apt-repository -y ppa:alex-p/tesseract-ocr
  RUN apt-get update &amp;&amp; apt-get install -y tesseract-ocr-all
  RUN apt-get install -y git build-essential cmake
  RUN apt-get install -y ffmpeg
  
  # Install Node and NPM
  RUN apt-get install nodejs -y &amp;&amp; apt-get install npm -y
  </code></pre>
  <p>The size of the image is too big so I searched for alternatives and found about Alpine.</p>
  <p>I'm stuck with this one</p>
  <pre><code>FROM alpine
  
  RUN apk add --update ffmpeg cmake nodejs npm
  </code></pre>
  <p>Looking at the aline edge repository, I can't seem to find <code>tesseract-ocr-all</code> and no idea how to do <code>apt-get install -y software-properties-common &amp;&amp; add-apt-repository -y ppa:alex-p/tesseract-ocr</code> in alpine.</p>
  <p>Are there any resources that can help me through this? Should I make my own Alpine image for those packages/repositories?</p>