Docker
Docker File for Python: For creating FirstAPI Dockerfile : FROM python : 3.9 WORKDIR /code COPY ./requirement.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY ./app /code/app CMD [ "uvicorn" , "app.main:app" , "--proxy-headers" , "--host" , "0.0.0.0" , "--port" , "80" ] FROM: to declare which package you want to import ex: FROM package: version WORKDIR: to declare which location your working. COPY: copy necessary directory to workspace you created directory File Structure: app : it contains all the python project related things and executables. .dockerignore: it contains all the ignore files while building the docker. requirement.txt: it contains all the modules to be installed from python through pip. Docker build commands: Go to the app directory for build image and run: รจ docker build -t getting-started . “. “ =>