0PricingLogin
Django Academy · Lesson

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

  1. Writing a Django Dockerfile
  2. docker-compose with Postgres and Redis
  3. Entrypoints, Migrations, and collectstatic
  4. Production Image Best Practices
← Back to Django Academy