Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -4
Dockerfile
CHANGED
|
@@ -1,9 +1,16 @@
|
|
| 1 |
FROM ollama/ollama:latest
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
RUN
|
|
|
|
| 5 |
|
| 6 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
EXPOSE 11434
|
|
|
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
| 1 |
FROM ollama/ollama:latest
|
| 2 |
|
| 3 |
+
# Install Python and FastAPI
|
| 4 |
+
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 5 |
+
RUN pip3 install fastapi uvicorn
|
| 6 |
|
| 7 |
+
# Copy your app script
|
| 8 |
+
COPY app.py /app/app.py
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
|
| 11 |
+
# Expose both ports (Ollama and HF Health Check)
|
| 12 |
EXPOSE 11434
|
| 13 |
+
EXPOSE 7860
|
| 14 |
|
| 15 |
+
# Run the script that handles everything
|
| 16 |
+
CMD ["python3", "app.py"]
|