Skip to content

Commit 1a93e2d

Browse files
committed
Fix sdist Dockerfile to use a newer Ubuntu
1 parent e6a2ef8 commit 1a93e2d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

ci/docker/python-sdist.dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
FROM amd64/ubuntu:20.04
18+
FROM amd64/ubuntu:24.04
1919

2020
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2121

@@ -25,12 +25,19 @@ RUN echo "debconf debconf/frontend select Noninteractive" | \
2525
RUN apt-get update -y -q && \
2626
apt-get install -y -q --no-install-recommends \
2727
git \
28-
python3-pip && \
28+
python3-pip \
29+
python3-venv && \
2930
apt-get clean && \
3031
rm -rf /var/lib/apt/lists*
3132

3233
COPY python/requirements-build.txt \
3334
/arrow/python/requirements-build.txt
34-
RUN pip3 install --requirement /arrow/python/requirements-build.txt
3535

36-
ENV PYTHON=/usr/bin/python3
36+
ENV ARROW_PYTHON_VENV /arrow-dev
37+
38+
RUN python3 -m venv ${ARROW_PYTHON_VENV} && \
39+
. ${ARROW_PYTHON_VENV}/bin/activate && \
40+
pip install \
41+
-r arrow/python/requirements-build.txt
42+
43+
ENV PYTHON=${ARROW_PYTHON_VENV}/bin/python

0 commit comments

Comments
 (0)