Spaces:
Runtime error
Runtime error
Download Dockerfile.simple from AnuragShirke/knowledge-assistant-backend: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/AnuragShirke/knowledge-assistant-backend/resolve/main/Dockerfile.simple
- Command line
-
hf download hf://spaces/AnuragShirke/knowledge-assistant-backend/Dockerfile.simple
-
curl -L -o Dockerfile.simple https://huggingface.co/spaces/AnuragShirke/knowledge-assistant-backend/resolve/main/Dockerfile.simple
313 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install basic dependencies | |
| RUN pip install fastapi uvicorn | |
| # Copy the simple main file | |
| COPY main-simple.py /app/main.py | |
| # Expose port (Railway uses PORT env var) | |
| EXPOSE $PORT | |
| # Run the application with dynamic port | |
| CMD uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000} |