Creating Docker Image of Python Program
Bash
Save it as a dockerfile in your project. Then run in your terminal(in the same directory)
docker build -t <image name> .
FROM python:3.6 ADD main.py . # RUN pip install CMD ["python", "./main.py"]
3