This is a small repository used to quickly test Python scripts and packages in a Dockerized environment.
| Service | Image | Container |
|---|---|---|
| testpy_service | python:3.8-alpine | testpy |
- Add Python packages to the
requirements.txtfile. - Build/rebuild the image and start the
testpycontainer by typing the commandmake build. - Add code to
main.py. - Test code by typing the command
make run. It will executemain.pyin thetestpycontainer.
make list: List all local images and containers.make exec: Enter thetestpycontainer.make clean: Cleanup and remove ALL local images and containers.make list_packages: List the Python packages installed in thetestpycontainer.