a good basic stub for Dockerfiles when wrapping an existing application

# FROM ubuntu:focal
FROM --platform=linux/amd64 nvidia/cuda:11.6.0-devel-ubuntu20.04 as base

# installing packages required for installation
RUN echo "downloading basic packages for installation"
RUN apt-get update
RUN apt-get install -y tmux wget curl git
RUN apt-get install -y libstdc++6 gcc

# checking installation of GPU tools
RUN gcc --version
RUN nvcc --version

# setting a working dir for the application 
mkdir app 
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt

# installing dependencies based on requirements file
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

# move the rest of the repo into the container
COPY ./. /app