Spaces:
Sleeping
Sleeping
File size: 428 Bytes
a6c9a80 db75d73 9c6c21b a8607e5 9c6c21b db75d73 a6c9a80 9c6c21b a8607e5 db75d73 a8607e5 9c6c21b a6c9a80 db75d73 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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"]
|