Spaces:
Runtime error
Runtime error
Download Dockerfile from SunbalAzizLCWU/openscholar-api: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/spaces/SunbalAzizLCWU/openscholar-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SunbalAzizLCWU/openscholar-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SunbalAzizLCWU/openscholar-api/resolve/main/Dockerfile
412 Bytes
| # Use official Python image | |
| FROM python:3.11 | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy requirements and install them | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the rest of the backend code | |
| COPY . /code | |
| # Hugging Face Spaces require apps to run on port 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |