Spaces:
Runtime error
Runtime error
Download Dockerfile from mominah/LLMINTROGROQ: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/spaces/mominah/LLMINTROGROQ/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mominah/LLMINTROGROQ/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mominah/LLMINTROGROQ/resolve/main/Dockerfile
502 Bytes
| # Use official Python slim image | |
| FROM python:3.11-slim | |
| # Unbuffered stdout/stderr for real-time logs | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Expose FastAPI port | |
| EXPOSE 7860 | |
| # Start the app with Uvicorn | |
| # Ensure GROQ_API_KEY is provided as an environment variable at runtime | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |