How to Dockerize a Python Program
Channel:
Subscribers:
1,000
Published on ● Video Link: https://www.youtube.com/watch?v=nYne1jmto3A
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
Other Videos By Notch Network
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