Spaces:
Runtime error
Runtime error
Download Dockerfile from srivatsavdamaraju2/serverapi: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/srivatsavdamaraju2/serverapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/srivatsavdamaraju2/serverapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/srivatsavdamaraju2/serverapi/resolve/main/Dockerfile
501 Bytes
| # Use the official Python image as base | |
| FROM python:3.9 | |
| # Set the working directory in the container | |
| WORKDIR /code | |
| # Copy the requirements file into the container at /app | |
| COPY requirements.txt ./requirements.txt | |
| # Install uvicorn | |
| RUN pip install uvicorn | |
| # Install Python packages from requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the current directory contents into the container at /app | |
| COPY . . | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app" ] |