Spaces:
Running
Running
File size: 433 Bytes
2f4e9fc |
1 2 3 4 5 6 7 8 9 10 11 |
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"] |