feat: Add BuildKit pip cache, unlock fastapi pin, mark Locking TODO complete

- Dockerfile: enable BuildKit syntax, use --mount=type=cache for pip to speed up rebuilds
- requirements.txt: relax fastapi==0.115.5 → fastapi>=0.115.5
- TODO: mark Locking task as complete

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-10 18:53:54 -04:00
parent 32560d2257
commit fc3277086f
3 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Aether API - FastAPI + Gunicorn
# Using tiangolo's optimized FastAPI image
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
@@ -16,7 +17,8 @@ RUN apt-get update; \
# Install Python requirements
# This file is now located in the project root
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r /tmp/requirements.txt
# Create a reference of actual installed versions
RUN pip freeze >> /tmp/aether_fastapi_requirements_current.txt