Entrypoints, Migrations, and collectstatic
Run startup steps inside the container.
Startup Steps Matter
Before serving traffic, a container often needs to run migrations and gather static files. Let's automate those startup steps. ⚙️
What an Entrypoint Is
An entrypoint is a script that runs every time the container starts, right before your main command takes over.
All lessons in this course
- Writing a Django Dockerfile
- docker-compose with Postgres and Redis
- Entrypoints, Migrations, and collectstatic
- Production Image Best Practices