This commit is contained in:
valenti
2026-09-08 07:21:34 -04:00
commit a4b224da8e
169 changed files with 27483 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
FROM python:3.12-slim AS base
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VIRTUALENVS_CREATE=false
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY packages/asf-domain /packages/asf-domain
COPY packages/asf-events /packages/asf-events
COPY packages/asf-connectors /packages/asf-connectors
RUN pip install --no-cache-dir \
-e /packages/asf-domain \
-e /packages/asf-events \
-e /packages/asf-connectors
COPY services/asf-core/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY services/asf-core/app ./app
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
CMD curl -fsS http://localhost:8000/api/v1/health || exit 1
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]