Spaces:
Sleeping
Sleeping
File size: 767 Bytes
e4b1ed6 c789799 e4b1ed6 c789799 e4b1ed6 c789799 e4b1ed6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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}"]
|