A ubuntu 18.04 (bionic) docker image to copy built python 3 sources from.
115
The purpose of this image is to copy python 3 built from source into your own docker containers
Sample usage:
ARG PYTHON3_VERSION=3.10.15
ARG PYTHON3_MAJOR=3.10
FROM dtequipment/bionic-python:${PYTHON3_VERSION} AS python3-source
# Ubuntu 18.04 based docker image we want to install python3 into
FROM ros:melodic-ros-core
ARG PYTHON3_VERSION
ARG PYTHON3_MAJOR
# Copy Python 3.10 artifacts from the bionic-python image
COPY --from=python3-source /usr/local/bin/python${PYTHON3_VERSION} /usr/local/bin/python${PYTHON3_VERSION}
# Symlink the binaries to pip3 and python3
RUN ln -s /usr/local/bin/python${PYTHON3_VERSION}/bin/python${PYTHON3_MAJOR} /usr/local/bin/python3 && \
ln -s /usr/local/bin/python${PYTHON3_VERSION}/bin/pip${PYTHON3_MAJOR} /usr/local/bin/pip3
# Other stuff
RUN python3 --version
RUN pip3 install pyyaml
Content type
Image
Digest
sha256:01b7a7e05…
Size
344.3 MB
Last updated
almost 2 years ago
docker pull dtequipment/bionic-python:3.10.15