Spaces:
Sleeping
Sleeping
Download Dockerfile from orderlymirror/aaa: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/orderlymirror/aaa/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/orderlymirror/aaa/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/orderlymirror/aaa/resolve/main/Dockerfile
648 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y gcc g++ curl && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app/ ./app/ | |
| COPY training/ ./training/ | |
| COPY data/artifacts/models/ /app/data/artifacts/models/ | |
| COPY data/learning_outcome_os_dataset_v2/ /app/data/learning_outcome_os_dataset_v2/ | |
| RUN mkdir -p /app/data/artifacts/{feedback,reports,metrics} | |
| ENV MODEL_ARTIFACT_DIR=/app/data/artifacts/models | |
| ENV DATASET_DIR=/app/data/learning_outcome_os_dataset_v2 | |
| ENV LOG_LEVEL=INFO | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |