# set base image (host OS) FROM python:3.9.10-slim-buster # set the working directory in the container WORKDIR /app # copy the dependencies file to the working directory COPY require.txt . # install dependencies RUN pip install -r require.txt # copy the content of the local src directory to the working directory COPY main.py . # command to run on container start CMD [ "python3", "main.py" ]