Kolaps27/UI-layout-optimizer
0
1# Use an official Python 3.10 runtime as a parent image2FROM python:3.10-slim3 4# Set the working directory in the container5WORKDIR /app6 7# Cache dependencies8COPY requirements.txt .9RUN pip install --no-cache-dir -r requirements.txt10 11# Copy the current directory contents into the container at /app12COPY . /app13 14# Expose port (HF Spaces uses 7860)15EXPOSE 786016 17# Environment variable for the HF token (can be overridden at runtime)18ENV HF_TOKEN=""19 20# Run the FastAPI server21CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]22 