- Add agents/core-logic/Dockerfile.base with heavy deps pre-baked - Update agents/core-logic/Dockerfile to build FROM base image - Update cloudbuild.yaml with step to build/push base (manual only) - Typical deploy time reduction: ~3 min → ~30 sec
19 lines
519 B
Docker
19 lines
519 B
Docker
# Builds on the pre-baked base image for fast deploys (~30s vs ~3min)
|
|
# Rebuild base when requirements change:
|
|
# see agents/core-logic/Dockerfile.base
|
|
FROM us-central1-docker.pkg.dev/propane-will-491900-m5/osvauco-repo/osvauco-base:latest
|
|
|
|
WORKDIR /app
|
|
|
|
# Install only the lightweight remaining deps
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
ENV PORT=8080
|
|
EXPOSE 8080
|
|
|
|
# app.py exports `app = FastAPI(...)`
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|