Spaces:
Running
Running
| FROM python:3.10 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN mkdir -p /tmp/numba_cache && chmod -R 777 /tmp/numba_cache | |
| ENV NUMBA_CACHE_DIR=/tmp/numba_cache | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY tissue_mcp.py . | |
| COPY tools/ tools/ | |
| RUN mkdir -p /app/data/upload /data/tmp_inputs /data/tmp_outputs && chmod -R 777 /app/data/upload /data | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "tissue_mcp:app", "--host", "0.0.0.0", "--port", "7860"] |