Example repository for pytorch cuda container with poetry. When you install new packages not related to pytorch, add pyproject.toml. Otherwise, Add installation command to Dockerfile as RUN command.
Additionaly, how to mount the container with VS Code devcontainer is described in this readme.
docker build -t pytorch-cuda-with-poetry .
docker run --gpus all -it pytorch-cuda-with-poetry
The devcontainer setting is located on .devcontainer
.
This setting uses the docker-compose.yaml to run container.