Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -9
Dockerfile
CHANGED
|
@@ -1,18 +1,21 @@
|
|
| 1 |
-
# Use the official Ollama image
|
| 2 |
FROM ollama/ollama:latest
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
RUN
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
# Set the working directory and copy your application code
|
| 11 |
WORKDIR /app
|
| 12 |
COPY . /app
|
| 13 |
|
| 14 |
-
# Expose the port Hugging Face Spaces expects
|
| 15 |
-
EXPOSE
|
| 16 |
|
| 17 |
-
# Run Gradio app
|
| 18 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
# Use the official Ollama image as the base
|
| 2 |
FROM ollama/ollama:latest
|
| 3 |
|
| 4 |
+
USER root
|
| 5 |
|
| 6 |
+
# Install Python, pip, and any other dependencies you need
|
| 7 |
+
RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
|
| 8 |
+
|
| 9 |
+
RUN pip3 install --upgrade pip
|
| 10 |
+
RUN pip3 install gradio langchain
|
| 11 |
+
|
| 12 |
+
# Overwrite the default entrypoint
|
| 13 |
+
ENTRYPOINT []
|
| 14 |
|
|
|
|
| 15 |
WORKDIR /app
|
| 16 |
COPY . /app
|
| 17 |
|
| 18 |
+
# Expose the port that Hugging Face Spaces expects
|
| 19 |
+
EXPOSE 7860
|
| 20 |
|
|
|
|
| 21 |
CMD ["python", "app.py"]
|