Download Dockerfile from dcsvelan/VelanAI: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/spaces/dcsvelan/VelanAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dcsvelan/VelanAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dcsvelan/VelanAI/resolve/main/Dockerfile
522 Bytes
| # Use a lightweight base image with Python 3.11 | |
| FROM python:3.11-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file to the container | |
| COPY requirements.txt . | |
| # Install the Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all backend files into the container | |
| COPY . . | |
| # Expose port 8000 for the FastAPI backend | |
| EXPOSE 8000 | |
| # Command to run the FastAPI backend using uvicorn | |
| CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "8000"] | |