Spaces:
Runtime error
Runtime error
Download Dockerfile from zaheer140/liveChatBotBackend: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/zaheer140/liveChatBotBackend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/zaheer140/liveChatBotBackend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/zaheer140/liveChatBotBackend/resolve/main/Dockerfile
1.01 kB
| # --- Backend Dockerfile --- | |
| FROM python:3.10-slim | |
| # Install system dependencies for psycopg2 and other packages | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libpq-dev \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy and install root requirements | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy and install Anomaly agent requirements | |
| COPY agents/anomaly/backend/requirements.txt ./anomaly_requirements.txt | |
| RUN pip install --no-cache-dir -r anomaly_requirements.txt | |
| # Copy all backend files | |
| COPY SuperAgent/ ./SuperAgent/ | |
| COPY agents/ ./agents/ | |
| COPY start_backend.sh ./start_backend.sh | |
| COPY .env* ./ | |
| # Expose the port Hugging Face expects | |
| EXPOSE 7860 | |
| # Fix CRLF Windows line endings and make start script executable | |
| RUN sed -i 's/\r$//' start_backend.sh && chmod +x start_backend.sh | |
| # Run the startup script explicitly with bash to avoid CRLF issues | |
| CMD ["/bin/bash", "./start_backend.sh"] | |