Spaces:
Runtime error
Runtime error
Download Dockerfile from redfernstech/s: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/spaces/redfernstech/s/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/redfernstech/s/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/redfernstech/s/resolve/main/Dockerfile
595 Bytes
| # Use the official Python image as the base image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the backend files into the container | |
| COPY backend/ /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Expose the FastAPI server port | |
| EXPOSE 8000 | |
| # Run the FastAPI app with uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] | |