Sign inSign up

debugger22/ubuntu1804-python39

By debugger22

•Updated about 5 years ago

Python 3.9 on Ubuntu 18.04

Image
0

188

debugger22/ubuntu1804-python39 repository overview

This image installs Python 3.9 and pip and dev dependencies of Python on Ubuntu 18.04

⁠Dockerfile for the image
FROM ubuntu:18.04

ENV PYTHON_PIP_VERSION 21.2.4
# make sure all messages always reach console
ENV PYTHONUNBUFFERED=1 

# Avoid stuck build due to user prompt
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa 

# Install python and python dev dependencies
RUN apt-get update && apt-get install --no-install-recommends -y wget python3.9 python3.9-dev python3.9-distutils build-essential && \
    apt-get clean && rm -rf /var/lib/apt/lists/*

# Install pip
RUN wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py && \
    python3.9 get-pip.py --disable-pip-version-check --no-cache-dir "pip==$PYTHON_PIP_VERSION" && \
    rm -f get-pip.py

Tag summary

Content type

Image

Digest

Size

152.6 MB

Last updated

about 5 years ago

docker pull debugger22/ubuntu1804-python39