Spaces:
Sleeping
Sleeping
FROM python:3.9 | |
# Install dependencies | |
RUN pip install fastapi uvicorn papermill pandas ipython ipykernel | |
RUN ipython kernel install --name "python3" | |
# Copy API code | |
COPY main.py /app/main.py | |
COPY fruitchecker.ipynb /app/fruitchecker.ipynb | |
WORKDIR /app | |
# Expose FastAPI on port 8000 | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |