FROM ollama/ollama:latest # Reset the entrypoint ENTRYPOINT [] # Install Python and Pip RUN apt-get update && apt-get install -y python3 python3-pip # Added 'httpx' to the installation list RUN pip3 install fastapi uvicorn httpx --break-system-packages # Copy and set up your application COPY app.py /app/app.py WORKDIR /app # Expose the ports EXPOSE 7860 EXPOSE 11434 # Start your Python script CMD ["python3", "app.py"]