FROM python:3.12-slim WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the application COPY compositecalc/ compositecalc/ COPY pyproject.toml . COPY app.py . # Install the package RUN pip install --no-cache-dir -e . # HF Spaces expects port 7860 EXPOSE 7860 CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]