docker-runner-python-build/Dockerfile.py38
Ivan Schaller f4e2bb002a
All checks were successful
pull request / build-py38 (push) Successful in 5m13s
pull request / build-py39 (push) Successful in 5m26s
pull request / build-py310 (push) Successful in 5m26s
pull request / build-py311 (push) Successful in 6m6s
update images
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
2023-09-04 23:26:09 +02:00

32 lines
900 B
Docker

FROM catthehacker/ubuntu:runner-22.04
ENV PYVERSION="3.8"
ENV PATH /home/runner/.local/bin:${PATH}
USER root
RUN \
echo "*** installing python ${PYVERSION} ***" \
&& apt install -y software-properties-common wget \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt update \
&& apt remove -y python* \
&& apt install -y "python${PYVERSION}" "python${PYVERSION}-full" "python${PYVERSION}-dev" \
&& ln -s -f /usr/bin/python${PYVERSION} /usr/bin/python \
&& ln -s -f /usr/bin/python${PYVERSION} /usr/bin/python3 \
&& wget -q https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py \
&& python3 -m pip install --upgrade pip wheel setuptools
# cleanup installation
RUN \
echo "**** cleanup ****" \
&& apt-get purge --auto-remove -y \
&& apt-get clean \
&& rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
USER runner