Benedette Otieno
feat: Implement production API for EMR integration with FastAPI and Docker support
a07fdc6 Download Dockerfile.api from Benedette/evd: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/spaces/Benedette/evd/resolve/main/Dockerfile.api
- Command line
-
hf download hf://spaces/Benedette/evd/Dockerfile.api
-
curl -L -o Dockerfile.api https://huggingface.co/spaces/Benedette/evd/resolve/main/Dockerfile.api
268 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "evd_api.main:app", "--host", "0.0.0.0", "--port", "8000"] | |