Spaces:
Sleeping
Sleeping
Download Dockerfile from AstraOS/broadcast_bot: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/AstraOS/broadcast_bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AstraOS/broadcast_bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AstraOS/broadcast_bot/resolve/main/Dockerfile
570 Bytes
| # Dockerfile | |
| FROM python:3.9-slim | |
| # Set a working directory | |
| # WORKDIR /app | |
| RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/* | |
| # Copy dependency definitions and install them | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Expose the port that uvicorn will listen on (Hugging Face Spaces uses port 7860) | |
| EXPOSE 7860 | |
| # Start the FastAPI app with uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |
| # CMD ["python", "app.py"] |