Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -1,21 +1,21 @@
|
|
| 1 |
FROM ollama/ollama:latest
|
| 2 |
|
| 3 |
-
# Reset the entrypoint
|
| 4 |
ENTRYPOINT []
|
| 5 |
|
| 6 |
# Install Python and Pip
|
| 7 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
RUN pip3 install fastapi uvicorn --break-system-packages
|
| 11 |
|
| 12 |
# Copy and set up your application
|
| 13 |
COPY app.py /app/app.py
|
| 14 |
WORKDIR /app
|
| 15 |
|
| 16 |
-
# Expose the ports
|
| 17 |
EXPOSE 7860
|
| 18 |
EXPOSE 11434
|
| 19 |
|
| 20 |
-
# Start your Python script
|
| 21 |
-
CMD ["python3", "app.py"]
|
|
|
|
| 1 |
FROM ollama/ollama:latest
|
| 2 |
|
| 3 |
+
# Reset the entrypoint
|
| 4 |
ENTRYPOINT []
|
| 5 |
|
| 6 |
# Install Python and Pip
|
| 7 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 8 |
|
| 9 |
+
# Added 'httpx' to the installation list
|
| 10 |
+
RUN pip3 install fastapi uvicorn httpx --break-system-packages
|
| 11 |
|
| 12 |
# Copy and set up your application
|
| 13 |
COPY app.py /app/app.py
|
| 14 |
WORKDIR /app
|
| 15 |
|
| 16 |
+
# Expose the ports
|
| 17 |
EXPOSE 7860
|
| 18 |
EXPOSE 11434
|
| 19 |
|
| 20 |
+
# Start your Python script
|
| 21 |
+
CMD ["python3", "app.py"]
|