Download Dockerfile from badru/MMSAPI: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/badru/MMSAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/badru/MMSAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/badru/MMSAPI/resolve/main/Dockerfile
395 Bytes
| # Use the official Python image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy application files | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir fastapi uvicorn transformers torch pillow opencv-python-headless | |
| # Expose port 8000 for FastAPI | |
| EXPOSE 8000 | |
| # Command to run the FastAPI app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |