<p>I have built an image from: <a href="https://archive.apache.org/dist/spark/spark-$2.4.4/spark-$2.4.4-bin-hadoop2.7.tgz" rel="nofollow noreferrer">https://archive.apache.org/dist/spark/spark-$2.4.4/spark-$2.4.4-bin-hadoop2.7.tgz</a></p>
<p>Once is downloaded, I do:</p>
<pre class="lang-py prettyprint-override"><code>cd spark-2.4.4-bin-hadoop2.7 &amp;&amp; bin/docker-image-tool.sh build
</code></pre>
<p>Then my image <code>spark-py:latest</code> is built.</p>
<p>I want to install pyarrow in it using this docker file:</p>
<pre class="lang-py prettyprint-override"><code>FROM spark-py:latest
COPY *.jar /opt/spark/jars/
RUN rm /opt/spark/jars/kubernetes-*-4.1.2.jar

RUN apk add --no-cache \
            build-base \
            cmake \
            bash \
            boost-dev \
            autoconf \
            zlib-dev \
            flex \
            bison \
            g++ 
           
RUN wget -q https://bootstrap.pypa.io/get-pip.py &amp;&amp; python3 get-pip.py &amp;&amp; rm -f get-pip.py
RUN apk update
RUN apk add --update --no-cache py3-arrow 

</code></pre>
<p>but I have an error:</p>
<pre class="lang-py prettyprint-override"><code>&gt; [8/8] RUN apk add --update --no-cache py3-arrow:
#12 0.552 fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
#12 1.269 fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
#12 1.672 ERROR: unsatisfiable constraints:
#12 1.688   py3-arrow (missing):
#12 1.688     required by: world[py3-arrow]
</code></pre>
<p>The repository is here: <a href="https://pkgs.alpinelinux.org/package/edge/testing/x86/py3-arrow" rel="nofollow noreferrer">https://pkgs.alpinelinux.org/package/edge/testing/x86/py3-arrow</a></p>
<p>I can see that is repository testing but I don't know how to install it.</p>

J.C Guzman
<p>This package is located in the <a href="https://wiki.alpinelinux.org/wiki/Enable_Community_Repository" rel="nofollow noreferrer">testing repository</a>. By default <code>/etc/apk/repositories</code> doesn't contain one.</p>
<img src="https://i.stack.imgur.com/sUVkF.png" height="150"/>
<p>You could add repo with the <code>apk add</code> command.</p>
<pre><code>RUN apk add  \
   --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \
   --update --no-cache py3-arrow 
</code></pre>
<p>or insert it directly to the end of <code>/etc/apk/repositories</code></p>
<pre><code>RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' &gt;&gt; /etc/apk/repositories
RUN apk add --update --no-cache py3-arrow
</code></pre>
