refactor(docker): replace uv with pip and move Django commands to runtime #20

Merged
Saani merged 1 commits from feature/meetings into main 2025-11-23 19:12:57 +00:00
Owner

Replace uv package manager with standard pip for dependency management.
Switch base image from debian:bookworm-slim to python:3.12-slim to include
Python runtime by default.

Key changes:

  • Remove uv installation and configuration
  • Use requirements.txt instead of pyproject.toml/uv.lock
  • Install dependencies with pip instead of uv sync
  • Move collectstatic and migrate from build-time to runtime in CMD
  • Simplify gunicorn command invocation

This simplifies the build process and makes the image more portable by
using standard Python tooling. Running migrations and collectstatic at
container startup ensures they execute against the correct database and
storage backend.

Replace uv package manager with standard pip for dependency management. Switch base image from debian:bookworm-slim to python:3.12-slim to include Python runtime by default. Key changes: - Remove uv installation and configuration - Use requirements.txt instead of pyproject.toml/uv.lock - Install dependencies with pip instead of uv sync - Move collectstatic and migrate from build-time to runtime in CMD - Simplify gunicorn command invocation This simplifies the build process and makes the image more portable by using standard Python tooling. Running migrations and collectstatic at container startup ensures they execute against the correct database and storage backend.
Saani added 1 commit 2025-11-23 19:12:52 +00:00
Replace uv package manager with standard pip for dependency management.
Switch base image from debian:bookworm-slim to python:3.12-slim to include
Python runtime by default.

Key changes:
- Remove uv installation and configuration
- Use requirements.txt instead of pyproject.toml/uv.lock
- Install dependencies with pip instead of uv sync
- Move collectstatic and migrate from build-time to runtime in CMD
- Simplify gunicorn command invocation

This simplifies the build process and makes the image more portable by
using standard Python tooling. Running migrations and collectstatic at
container startup ensures they execute against the correct database and
storage backend.
Saani merged commit ceca8895e2 into main 2025-11-23 19:12:57 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ATTUNE-HEART-THERAPY/alternative-backend-service#20
No description provided.