CoolFace
Apppublic

cdshelat/MorphAI

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
Dockerfile30 linesDownload Raw Back to root
1FROM python:3.11-slim2 3WORKDIR /app4 5RUN apt-get update && apt-get install -y --no-install-recommends \6    curl \7    && rm -rf /var/lib/apt/lists/*8 9COPY requirements.txt .10RUN pip install --no-cache-dir -r requirements.txt11 12# Copy all application modules13COPY app.py optimizer.py visualization.py geometry.py \14     materials.py chat.py meshing.py utils.py ./15 16# Copy Streamlit theme config only — secrets.toml is excluded by .dockerignore.17# Pass API keys at runtime via environment variables:18#   ANTHROPIC_API_KEY=sk-ant-... docker compose up19COPY .streamlit/config.toml .streamlit/config.toml20 21EXPOSE 786022 23HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \24    CMD curl --fail http://localhost:7860/_stcore/health || exit 125 26CMD ["streamlit", "run", "app.py", \27     "--server.port=7860", \28     "--server.address=0.0.0.0", \29     "--server.headless=true"]30