File size: 353 Bytes
e6e3a40
 
 
fa8e217
 
 
e6e3a40
 
 
 
 
 
 
fb52a57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"]