- Dockerfile for Python 3.12 FastAPI app - Drone CI pipeline to build and push to internal registry - Kubernetes manifests (Deployment, Service, Secret, Namespace) - ArgoCD Application for GitOps deployment - Kustomize base configuration
23 lines
485 B
Docker
23 lines
485 B
Docker
FROM python:3.12-slim AS base
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends gcc g++ && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY pyproject.toml ./
|
|
|
|
RUN pip install --no-cache-dir . && \
|
|
pip install --no-cache-dir openbb-quantitative openbb-econometrics openbb-technical && \
|
|
apt-get purge -y gcc g++ && \
|
|
apt-get autoremove -y
|
|
|
|
COPY *.py ./
|
|
|
|
EXPOSE 8000
|
|
|
|
USER nobody
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|