Back to Course
Machine Learning: The Engineering Approach
Module 13 of 13
13. Deployment with Docker
1. "It works on my machine"
The most expensive sentence in engineering. Docker packages your OS, Libraries, and Code into a specific artifact.
2. The Dockerfile
dockerfileFROM python:3.9-slim COPY . /app RUN pip install -r requirements.txt CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]