Sign inSign up

cirepo/pyenv-python

By cirepo

Updated over 7 years ago

Python (pyenv) for multi-stage docker image build.

Image
0

648

cirepo/pyenv-python repository overview

docker-bionic-pyenv-python

Python (pyenv) for multi-stage docker image build.

Dockerfile ci-and-cd/docker-bionic-pyenv-python on Github

cirepo/pyenv-python on Docker Hub

Use this image as a “stage” in multi-stage builds


FROM ubuntu:18.04
COPY --from=cirepo/pyenv-python:2.7.14_3.6.5-bionic-archive /data/root /
RUN sudo chown -R $(whoami):$(id -gn) /home/$(whoami) \
  && sudo apt-get -y install gcc libbz2-dev libsqlite3-dev libssl-dev make zlib1g-dev \
  && touch home/$(whoami)/.profile \
  && echo 'export PATH="${HOME}/.pyenv/bin:${PATH}"\
if which pyenv > /dev/null; then eval "$(pyenv init -)"; eval "$(pyenv virtualenv-init -)"; fi' | tee -a home/$(whoami)/.profile

Tag summary

Content type

Image

Digest

Size

232.7 MB

Last updated

over 7 years ago

docker pull cirepo/pyenv-python:2.7.16_3.7.2-bionic-archive