Spaces:
Sleeping
Sleeping
Download Dockerfile from sumoy47/medguard-api: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/sumoy47/medguard-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sumoy47/medguard-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sumoy47/medguard-api/resolve/main/Dockerfile
518 Bytes
| # Use python 3.9 slim image | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /code | |
| # Copy requirements first (for caching) | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the model directory and code | |
| # MAKE SURE your model is unzipped in a folder named 'model' | |
| COPY ./model /code/model | |
| COPY ./main.py /code/main.py | |
| # Run the app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |