Download Dockerfile from YGCXLab/ux-research-agent-slackbot: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/YGCXLab/ux-research-agent-slackbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/YGCXLab/ux-research-agent-slackbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/YGCXLab/ux-research-agent-slackbot/resolve/main/Dockerfile
663 Bytes
| FROM python:3.10 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Create user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR $HOME/app | |
| # Copy application code | |
| COPY --chown=user . . | |
| # Expose port for HF Spaces health check | |
| EXPOSE 7860 | |
| # Make script executable | |
| RUN chmod +x run_app.sh | |
| # Run startup script (FastAPI + optional Slack bot) | |
| CMD ["/bin/bash", "run_app.sh"] | |