Maintained by: ProgTech
This repository only creates and image to be used for python scripts inside a Docker container.
It uses the Docker Python Official documentation to see how to customize.
Here is our Official documentation on how to install and use it from Docker Hub
The python container created by this Dockerfile
has:
- python v3.11.1
- pip v22.3.1
- bash
- vim v9.0 (as editor)
- Clone de repo
git clone https://github.com/prog-tech/docker-python.git
- Build the image
./build.sh
- Run the container
./run.sh
If everything goes well, you should see something like:
$ ./run.sh
dd5205d03c95:/usr/src/app#
You can then run python
with the command:
dd5205d03c95:/usr/src/app# python
Python 3.11.1 (main, Jan 9 2023, 20:37:01) [GCC 12.2.1 20220924] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>