Spaces:
Sleeping
Sleeping
| FROM python:3.10-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 app.py . | |
| COPY calculator.py . | |
| COPY calculator.tcss . | |
| # Expose the port that HF Spaces expects | |
| EXPOSE 7860 | |
| # Run the server | |
| CMD ["python", "app.py"] |