Spaces:
Sleeping
Sleeping
Download Dockerfile from davanstrien/textual-serve-as-space: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/davanstrien/textual-serve-as-space/resolve/8a3bbdc5073d317d08e90642806df0b14b6484ed/Dockerfile
- Command line
-
hf download hf://spaces/davanstrien/textual-serve-as-space@8a3bbdc5073d317d08e90642806df0b14b6484ed/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/davanstrien/textual-serve-as-space/resolve/8a3bbdc5073d317d08e90642806df0b14b6484ed/Dockerfile
562 Bytes
| FROM python:3.13-slim | |
| # Set proper terminal environment for Textual | |
| ENV TERM=xterm-256color | |
| ENV COLORTERM=truecolor | |
| ENV PYTHONUNBUFFERED=1 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create app directory | |
| WORKDIR /app | |
| # Copy requirements and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY serve.py . | |
| # Expose the port that HF Spaces expects | |
| EXPOSE 7860 | |
| # Run the server | |
| CMD ["python", "app.py"] |