Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| ARG DCV_BUILD_SHA=unknown | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV DCV_MODEL_RUN_DIR=data/model_runs/synthetic_v1_baseline | |
| ENV DCV_FEATURE_TABLE=data/synthetic_v1/features/window_features_all.csv | |
| ENV DCV_BUILD_SHA=${DCV_BUILD_SHA} | |
| WORKDIR /app | |
| COPY src/datacenter_verification_api/requirements.txt /tmp/requirements-api.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements-api.txt | |
| COPY src ./src | |
| COPY data/model_runs/synthetic_v1_baseline ./data/model_runs/synthetic_v1_baseline | |
| COPY data/synthetic_v1/features/window_features_all.csv ./data/synthetic_v1/features/window_features_all.csv | |
| RUN printf '%s\n' "${DCV_BUILD_SHA}" > /app/.dcv-build-sha | |
| CMD ["sh", "-c", "uvicorn src.datacenter_verification_api.app:app --host 0.0.0.0 --port ${PORT:-7860}"] | |