How to Dockerize a Python Program

Channel:
Subscribers:
1,000
Published on ● Video Link: https://www.youtube.com/watch?v=nYne1jmto3A



Category:
Tutorial
Duration: 6:30
50 views
0


In this video I go over how to Dockerize a simple python script with dependencies.

Links:
Docker Desktop: https://www.docker.com/products/docker-desktop
VsCode: https://code.visualstudio.com/download (install python and docker plugin)
DockerFile:
FROM python:3

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./your-daemon-or-script.py" ]

My Channel: https://goo.gl/IW4SZG







Tags:
minecraft
notch network
python
docker
container
dockerize
containerize
docker app
web app
deploy
fastapi
flask
django
python application
virtual environment
linux
python script
docker tutorial
beginner tutorial
getting started