Python development container. Used to develop and test your package inside it's
own container. Adds current working directory ONBUILD to /usr/src/app
inside the container.
This image has an entrypoint that adds to commands.
pyenv-virtualenv for your package. Install's any
requirement*.txt files in the pyenv-virtualenv, and if there's a
setup.py in /usr/src/app it will install your app with
pip install -e.pyenv-virtualenv for your project. Then calls any
other args passed from command line. This is the default
ENTRYPOINT for any docker run commands. To override set
the ENTRYPOINT to something different in your development
Dockerfile.Dockerfile.dev
FROM mhoush/py-dev
ENV PROJECT py-dev-test
ENV PROJECT_PYTHON 3.5.0
RUN /bin/bash /entrypoint.sh install
Build the dev container.
$ docker build -t py_dev_test:dev -f Dockerfile.dev .
Run commands in the container
$ docker run --rm py_dev_test:dev pip freeze
Open a bash shell
$ docker run -it --rm py_dev_test:dev bash
Content type
Image
Digest
Size
216.7 MB
Last updated
about 8 years ago
docker pull mhoush/py-dev