Spaces:
No application file
No application file
Download Dockerfile from yamunasivan/Huggingface_project: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/yamunasivan/Huggingface_project/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/yamunasivan/Huggingface_project/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/yamunasivan/Huggingface_project/resolve/main/Dockerfile
440 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.9 | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy requirements.txt and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . /code/ | |
| # Expose port 8000 (FastAPI default) | |
| EXPOSE 8000 | |
| # Command to run FastAPI app | |
| CMD ["fastapi", "run", "backend/api/main.py", "--host", "0.0.0.0", "--port", "8000"] | |