Skip to content

Instantly share code, notes, and snippets.

@tiagovrtr
Created August 26, 2022 01:21
Show Gist options
  • Save tiagovrtr/39e21eabd442f5b5a832417405ed44a8 to your computer and use it in GitHub Desktop.
Save tiagovrtr/39e21eabd442f5b5a832417405ed44a8 to your computer and use it in GitHub Desktop.
Install python in docker
FROM ubuntu:focal
RUN : \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
gnupg2 \
python3-pip \
software-properties-common \
&& add-apt-repository ppa:deadsnakes \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3.9-dev \
python3.9-distutils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
CMD ["python3.9", "-m", "pip", "--help"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment