## What's this? This is a Dockerfile and Makefile for me to setup Python3.11 + Poetry + Pytorch environment on docker container. ## Prerequisites 1. The host is Ubuntu. 2. Has GPU. ## Usage 1. Install docker on the host. https://docs.docker.com/engine/install/ 2. Install nvidia-container-toolkit on the host. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html 3. Install nvidia gpu driver on the host. https://ubuntu.com/server/docs/nvidia-drivers-installation 4. Create a directory for your project and copy-paste Dockerfile and Makefile 5. Run: `make build`. 6. Run: `make run` to jump into the container. 7. Run: `poetry init -q` in the container. 8. Run: `poetry add numpy` or something else in the container to add some dependencies in the pyproject.toml. 9. Press Ctrl-d to get back to the host. 10. Write some code. 11. To rebuild container, run `make build`. 12. Run: `make ps` on the host and `python main.py` or something in the container.