FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY python-backend/ ./python-backend/ ENV PORT=8000 EXPOSE 8000 # Run from within python-backend so 'api' and 'core' are importable as top-level packages CMD ["sh", "-c", "cd /app/python-backend && uvicorn api.main:app --host 0.0.0.0 --port ${PORT}"]