Spaces:
Paused
Paused
Download Dockerfile from Raiff1982/Falcondette: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/Raiff1982/Falcondette/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Raiff1982/Falcondette/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Raiff1982/Falcondette/resolve/main/Dockerfile
561 Bytes
| # Base Image | |
| FROM python:3.9-slim | |
| # Set Working Directory | |
| WORKDIR /app | |
| # Install System Dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libportaudio2 \ | |
| libportaudio-dev \ | |
| libportaudiocpp0 \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy Application Files | |
| COPY . /app | |
| # Install Python Dependencies | |
| RUN pip install --no-cache-dir pip -U && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Expose Port (Optional) | |
| EXPOSE 8000 | |
| # Run the Application | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"] | |