Download Dockerfile from kpatel1607/moodlens-api: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/kpatel1607/moodlens-api/resolve/main/Dockerfile
- Command line
-
hf download hf://kpatel1607/moodlens-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/kpatel1607/moodlens-api/resolve/main/Dockerfile
362 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV TRANSFORMERS_NO_TF=1 | |
| ENV USE_TF=0 | |
| ENV HF_HOME=/tmp/huggingface | |
| ENV TRANSFORMERS_CACHE=/tmp/huggingface | |
| ENV PYTHONUNBUFFERED=1 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app ./app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |