Spaces:
Runtime error
Runtime error
Download Dockerfile from akshay-sg/SafeScroll: direct link, hf CLI and curl.
- Browser
- Download file 422 Bytes
-
https://huggingface.co/spaces/akshay-sg/SafeScroll/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/akshay-sg/SafeScroll/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/akshay-sg/SafeScroll/resolve/main/Dockerfile
422 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| # Copy requirements first (better caching) | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the application code | |
| COPY ./app.py /code/app.py | |
| # Launch the server | |
| # Note: app:app refers to file 'app.py' and object 'app' inside it | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |