davanstrien's picture
davanstrien HF Staff
test three
4f61dd1
raw
history blame
574 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 \
git \
&& 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", "serve.py"]